When I try to print a single record from a form I get the following error message:
Syntax Error (Missing Operator)in query expression '(3600siteid = Forms!3600!3600siteid).
I'm using the following code to print a record:
Dim strDOCNAME As String
Dim strFILTER As String
strDOCNAME = "3600AllInfo"
strFILTER = "3600siteid = Forms!3600!3600siteid"
DoCmd.OpenReport strDOCNAME, acViewNormal, , strFILTER
I've used this same code on other forms in this database and had success with it. Can anyone help me figure out why this one is different?
Thanks,
Tony
Syntax Error (Missing Operator)in query expression '(3600siteid = Forms!3600!3600siteid).
I'm using the following code to print a record:
Dim strDOCNAME As String
Dim strFILTER As String
strDOCNAME = "3600AllInfo"
strFILTER = "3600siteid = Forms!3600!3600siteid"
DoCmd.OpenReport strDOCNAME, acViewNormal, , strFILTER
I've used this same code on other forms in this database and had success with it. Can anyone help me figure out why this one is different?
Thanks,
Tony