M
Mark
Hi,
I'm trying to update a table based depending upon if a
report has been run or needs to be run, using the
following query:
DoCmd.RunSQL "UPDATE tblReport SET tblReport.RunComplete =
Yes WHERE (((tblReport.RunComplete)=0) AND ((DatePart("m",
Date())) = [RunDate]));"
But I keep getting an "Expected end of statement" compile
error on "m" in the query string. What am I doing wrong?
Any help would be greatly appreciated. Thanks!
Mark
I'm trying to update a table based depending upon if a
report has been run or needs to be run, using the
following query:
DoCmd.RunSQL "UPDATE tblReport SET tblReport.RunComplete =
Yes WHERE (((tblReport.RunComplete)=0) AND ((DatePart("m",
Date())) = [RunDate]));"
But I keep getting an "Expected end of statement" compile
error on "m" in the query string. What am I doing wrong?
Any help would be greatly appreciated. Thanks!
Mark