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
How to reduce DASD utilization
Display of base64 images in IE
us domain
Can't login to Lacie d2
Can't Import javax.tv.Xlet within Java ME project class
Save Publishign site as template in SharePoint 2010
RealPlayer 11 keeps asking to add Downloader Agent
C++ mp3 playback class
IMAP, outlook 2007, and backup/recovery of today deleted email.
Internal Companyweb not working without manual DNS