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
Change Color of Mark my Comments in Outlook without changing default reply color
Could not start the Web Deployment Agent Service service on Local Computer
wm_concat
Silently remove registry key value at logon
PHP form -- thank you message display on same page
Recommended approach to consolidating relational CSV data in Excel....
excel vba to save worksheet as mht file
Outlook in "safe mode"
Is this BIOS-setting correct?
SQL in C# code .. Reading Output Parameters.