Microsoft
Software
Hardware
Network
Question : Check syntax of SQL Select statement in access vba code
Hi,
Could someone please check this syntax for me:
strSQLMonPubs = "SELECT * FROM qryWeeklyAccountCharge WHERE CustomerID = " & CurrentCustomerID & " AND 'DayDelivered = Monday OR Monday - Friday OR Monday - Saturday'"
In the query there is a field called DayDelivered and I want all results where the DayDelivered is "Monday" "Monday - Friday" or "Monday - Saturday"
So a single customer may have multiple results.
Thank you.
Answer : Check syntax of SQL Select statement in access vba code
strSQLMonPubs = "SELECT * " & _
"FROM qryWeeklyAccountCharge " & _
"WHERE CustomerID = " & CurrentCustomerID & " AND DayDelivered IN ('Monday', 'Monday - Friday', 'Monday - Saturday')"
Random Solutions
HiJackThis Analysis. Also "NoIE4StubProcessing"
Moving WordPress Site - Page Not Found
Communigate Pro bounce back "The message was not delivered because the return address was refused"
TSQL nested WHILE EXISTS
SQLCommandBuilder - GetUpdateCommand, GetInsertCommand and GetDeleteCommand Questions
Drupal - changing css for only one View
Raid 1 mirror Bad block discovered
Unix Perl or Shell script to split a data file by header+trailer
How can I determine if the firewall is not letting through certain TCP packets?
Delete blank line from textarea