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
IAS Server not responding
double proxy in IE
DHCP Client service keeps stopping when you reboot.
Changing Text
Mail stuck in Lotus oubox
Run exe packaged inside a JAR from Applet
Exporting mailboxes to PST in Exchange 2007 running on SBS 2008
VBScript Exchange 2003 set user storage limit
jQuery Colorbox - Open iframe from iframe
Documentation for Palo Alto PA 500 firewall