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
google search API C# jSON question
Call Procedure from VB6 and pass paremeters
DP 6.0 Win2K cell mgr - backup to iSCSI lun using file device
Replace apostrophes in all Session Variables in C#?
SQL
Determine standard default font in a form object in excel forms collection
How do I push IE 8 through WSUS using Group polciy
Retrieve value of calculated control on a subform
restore from DB?
Is there a backup/disaster recovery solution that doesn't cost a fortune?