>I made the following correction:
>
>
>string selectcmd = "SELECT EmployeeID,LastName,FirstName FROM Employees WHERE FirstName = " + "'" + mykey + "'";
>
>and it worked, thank you. but how would I pass 'mykey' as a parameter?
I posted few thread links that show how to do it.
If it's not broken, fix it until it is.
My Blog