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
Disable SID Filtering in a Windows 2000 domain
Access 2007 Combo box synchronization
PPTP VPN via Windows 2008 R2
Apple Mail Notes keep reappearing after deletion
raid5 and win 2008 r2 server
Summing amount using a aggregate function in a query
weblogic portal 10.3.2
Php SOAP-ERROR: Parsing WSDL
I need to adapt VB script to run on SQL Server
AJAX Refresh on Submit of Pop Up Window