SQL UPDATE/SET/WHERE statement

pts.
Tags:
SQL
I have a DB with 12 columns and hundreds of row with a key on the Smartrac_No. I have created forms in FP2000 to allow a user to add, change or delete rows of information. The following is my SQL statement in the updaterecord.asp: UPDATE smartracs2004 SET Description='::NewDescription::' WHERE Smartrac_No='::Smartrac_No::' I receive this message: Database Results Error Description: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. Number: -2147217913 (0x80040E07) Source: Microsoft OLE DB Provider for ODBC Drivers When I change the ':: to " I receive this message: Database Results Error Description: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1. Number: -2147217904 (0x80040E10) Source: Microsoft OLE DB Provider for ODBC Drivers What is the proper statement for this update. Thanks

Answer Wiki

Thanks. We'll let you know when a new response is added.

Notice your first error message. It appears that the syntax was fine, rather the problem was what you were trying to store in the database.

Your error message.
Data type mismatch in criteria expression.

My guess would be that you are trying to populate a numeric field in your database with a char.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following