well...

it seems to be syntax problem...

check the line If @userid = 'jaymie"

use either ' or ".
when they are mixed... well it's not anymore so simple.
when opened with ' it will never be closed without second ' even if there is thousand " in the middle.

cheers,
_________________________
!

download KiXnet