This
code:
$user='@userid'+'$'

must be this:
code:
$user=@userid+'$$'

Also, put a
code:
? ''+@ERROR+' - '+@SERROR

in the line after every USE statement to see whether the mapping was succesful or what type of error occurred.

finally, please post your script in between [CODE] tags to retain formatting.

[ 15 July 2002, 22:38: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.