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
Salesforce Outlook Connector with Server 2008 r2 Terminal Server
PHP printer
Remote Web Workplace / RDP
Sonicwall E5500 bandwidth/shaping vs Packetlogic PL5600
ASP - Masterpage issue with Home.asp
ssh 1.99 vs 2.0
redirecting content from client to server
IE sometimes fails to connect, gets worse with time since reboot
Search and replace script
Is there a better docmd.sendobject method to send query results?