HE:LP with type mismatch error!

Randix

Registered User.
Local time
Today, 19:04
Joined
Mar 24, 2001
Messages
56
The following line is generating the error: Run time error 3464...Data type mismatch in criteria expression:

Set rst = db.OpenRecordset("SELECT X FROM audit WHERE [X] = '" & Me.x & "';")

"X" is defined as a number in the audit table. Me.X is off a form that is based on the audit table so why am I getting the error?
 

Users who are viewing this thread

Back
Top Bottom