OleDbParameter Problem
I'm trying to use the example on page 308 where I add the @firstName and @lastName parameter to the dbCommand, but when I execute the insert statement (dbCommand), I get the following error:
"Exception Details: System.Data.OleDb.OleDbException: Must declare the variable '@firstName'".
Incidentally, I'm also having trouble using the try/catch code.
Thanks for any help.
|