D
DJHymel
I am trying to use
Dim strSQL As String
strSQL = "CategoryID = Like'*'"
DoCmd.OpenReport "rptProducts", acViewPreview, , strSQL
but returns Run-Time error "3075":
Syntax error (missing Operator) in query '(categoryID =
Like'*')'
I know I can eliminate the the srtSQL in the Docmd (and
the report will show all records), but this is only part
of the code.
Thanks in advance for any help
Dim strSQL As String
strSQL = "CategoryID = Like'*'"
DoCmd.OpenReport "rptProducts", acViewPreview, , strSQL
but returns Run-Time error "3075":
Syntax error (missing Operator) in query '(categoryID =
Like'*')'
I know I can eliminate the the srtSQL in the Docmd (and
the report will show all records), but this is only part
of the code.
Thanks in advance for any help