criteria problem in form

eyalco

Registered User.
Local time
Today, 02:05
Joined
Jul 24, 2007
Messages
50
I'm trying to set criteria for a report through a form - using this :
strCriteria = "[invoice_no]= " & Me![INVOICE_NO]

I'm getting a synthax error =
syntax error in query expression '([invoice_no]=".)'.

Thing need to tune the criteria somehow - can someone help pls?
 
Try:

strCriteria = "[invoice_no]='" & Me![INVOICE_NO] & "'"
 

Users who are viewing this thread

Back
Top Bottom