You don't want to select @empid, you want to select the column in your table that contains the ID. @empid should be set to the email address of the Employee.
Momerath
Nearly a Senior Poster
3,386 posts since Aug 2010
Reputation Points: 1,232
Solved Threads: 558