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
Seeking advice on a hosting vendor
How do I combine CustomValidators with RequiredFieldValidators and RegularExpressionValidator
s?
Gateway for Server automatically being removed after restart
Replacing Keyboard on Toshiba Portege A600
Restore from older backups
E-Mail
Dynamically Label Radio Button Lists in ASP.net
HP PRINTER P3015 and P3005 cartridge compartible?
530 error bounced email when sending to any sbcglobal.net address from our sbs 2003 server. The ISP is sbcglobal DSL line.
Blank screen After WIn XP splash screen.