No I can't use MSN (not allowed here)

Without a period in the account name:
The $Homemdb is populated correctly in each instance below

 Code:
       $homeMDB=split($recordset.fields("homemdb"),",")  
       select
          case $mode="Store"
            $store=split($homemdb[0],"=")
            $HOMEMDB=$store[1]
          case $mode="Server"
            $HOMEMDB=right($homemdb[3],4)
       endselect


With a period in it fails on the first line above. Do you have a suggestion on a way to error check this?
_________________________
Dale