I'm trying to add onto the open report command but having problems.
I'm using the filter on a form to populate labels
and Access doesn't like this.
I'm getting a 3075 error "Syntax error (missing operator) in query expression 'and [Mail] = Yes'.
What is the correct syntax for this?
Thanks much
I'm using the filter on a form to populate labels
Code:
DoCmd.OpenReport "Labels_Contacts", acViewPreview, , Me.Filter & "and [Mail] = 'Yes'"
I'm getting a 3075 error "Syntax error (missing operator) in query expression 'and [Mail] = Yes'.
What is the correct syntax for this?
Thanks much