I am trying to set up a button to print report that is currently open, this is what I have set for the click command code:
DoCmd.OpenReport "Weapons Cards", acViewNormal, , "Name = " & Forms!Main!Name
Whenever I click the button to print I get an error:
syntax error (missing operator)in query expression '(Name = William Wilson'
DoCmd.OpenReport "Weapons Cards", acViewNormal, , "Name = " & Forms!Main!Name
Whenever I click the button to print I get an error:
syntax error (missing operator)in query expression '(Name = William Wilson'