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
Wireless Access Point - Hard Plastics Protective Cover
Start applications from command promt
how can i edit this excell ?
Windows Server 2003 Intermittent Freezing Issues
Fix NMIndexStoreSvr.exe error [5296]
Office Communications Server R2 Installation Issue
Revert to Visual Studio 2008
Use of Excel Macro in MS Access 2000
DELETE DUPLICATE RECORD from TABLE in SQL Server 2005
C loop string cat a file name + int n loop