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
PHP MySQL SELECT OPTGROUP parent value
cross domain javascript
SQLCommandBuilder - GetUpdateCommand, GetInsertCommand and GetDeleteCommand Questions
SBS2008 GoDaddy as SmartHost for email.
Subdatasheet behavior
Riverbed with Cisco GRE Tunnel
Outlook 2007 and Microsoft Office Online
MS SQL Server only using one core on a 4 core box
Controlling main application threads from within an instance of a class
Nagios - email notifications