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
MS SQL Stored Procedure miscounting number of characters
Add date to MySQL
lpr print server issue
Php concanation text
How do I check if a window is already open or give it focus using Flex/Flash
Setting up exchange
CX600 FLARE 2.05.600.5.007 - upgrade procedure to 2.19?
DOS Batch Turnkey system for Win95
Cisco IDS vs Juniper IPD 250
Adding an if statement