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
Ecommerce Solutions with CMS
How do I convert string to char?
Setup a wenpage in Windows Server 2008
Upgrade Sqlite in RHEL5.4
Apple Mail - Find local Exchange email after changing accounts?
Unable to Search Empty Folders
Are Mac's easier to support than PC's? Why or why not?
Secondary namespace in WSDL
Exchange 2007 Service Pack 3 Install
error opening with internet explorer in MOSS 2007