This is about a Command Association with a button in a subform
COMMAND
DoCmd.OpenReport "AR", acViewPreview, , "[ar].[ltcfname]=" & Me.ltcfname.Value
When I run the code I get the following error:
Run-time error '3075':
Syntax error (missing operator) in query expression
'[ar].[ltcfname]=Arlington Heights'.
This filter works in the report
([ar].[ltcfname]="Arlington Heights")
the report's name is "AR"
can someone tell me what the heck I am doing wrong??
COMMAND
DoCmd.OpenReport "AR", acViewPreview, , "[ar].[ltcfname]=" & Me.ltcfname.Value
When I run the code I get the following error:
Run-time error '3075':
Syntax error (missing operator) in query expression
'[ar].[ltcfname]=Arlington Heights'.
This filter works in the report
([ar].[ltcfname]="Arlington Heights")
the report's name is "AR"
can someone tell me what the heck I am doing wrong??
