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
Worldspan - calling worldspan web service
Windows XP Taskbar won't auto-hide
Operator '=' is not defined for type 'DBNull' and type 'Integer' - how to fix
EMC DPA (Data Protectiopn Advisor) Report
Mail stuck in Lotus oubox
riddle vb.net calling unmanaged c++ dll
Exporting mailboxes to PST in Exchange 2007 running on SBS 2008
Outlook 2003 on terminal servers
Documentation for Palo Alto PA 500 firewall
the object is not accessible because is a friend