I am running a sql statement:
DoCmd.RunSQL ("Select Claim_Type,Primary_Pymt from Tests where PatientSS#=" & Form![PatientSS#])
When I run the statement I get a "Run-time error '3075' Syntax error in date in query expression 'PatientSS#=123456789'.
Why would I get this error message? The sql statement should pull a date.
DoCmd.RunSQL ("Select Claim_Type,Primary_Pymt from Tests where PatientSS#=" & Form![PatientSS#])
When I run the statement I get a "Run-time error '3075' Syntax error in date in query expression 'PatientSS#=123456789'.
Why would I get this error message? The sql statement should pull a date.