Microsoft
Software
Hardware
Network
Question : Correct syntax in a Where clause
I need help with the syntax of a Select statement where the WHERE clause is looking for records that have a value that is True (a Yes/No data type).
Here is the statement that doesn't work:
rst1.Open "SELECT * FROM qryList WHERE SendEmail = " & "" & True & "'""
Thanks in advance,
Ron
Answer : Correct syntax in a Where clause
rst1.Open "SELECT * FROM qryList WHERE SendEmail = 1 "
should do it...
Random Solutions
Global variable dosent work?
How can I "sp_help" the output signature of a Stored Procedure?
How to disable Security Alert box in windows 7?
How can I make related calculated columns and conditionals in a MS SQL View?
simple VB file download example
HTC Touch 3G: How can I really upgrade WM6.1 to WM6.5 and/or porting to latest Android?
Crystal Reports Xi - Sorting a CrossTab Report by a Summary Field
Multiple Stored Procedures in a single transaction
get-wmiobject error - Powershell
Opera Version 10.60 page cache(!?) problem