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
publishing websites in TMG 2010
Microsoft access 2010 pegs the CPU
GFI 2010 Limits exchange 2003 incoming email 2 mb! ARGH!
How do I delete some lines in a text file?
ESXi compatible hardware
Have to restart print spooler to print to HP Photosmart C7280
HTML - SQL - Carrying Form Variables from Page to Page
Foxpro and using Excel 2010 as an object
Sum if from access data base
GP folder redirection. cant turn off