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
Gigabit motherboard but only running 100 Mbps on LAN
Finding file owner - getting an error: identity references could not be translated
I need to stop, then re-start, a thread in a web service using IIS
sql server smtp port
OEM Crystal Viewer vs 3rd Party Crystal Viewer
NPS Accounting Report for VPN Connections
SBS2008 long login time Waiting for policy
ColdFusion/SQL Procedure Undefined Variable Problem
Access 2007 - Query Question
Windows Vista, very slow to boot, Black screen