Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invalid column name

Status
Not open for further replies.

GeorgeBC

Programmer
Nov 23, 2005
21
TR
Hi,

I'm receiving this error:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'false'.
/root/program.asp, line 26

My code:

<%Dim con
Set con = CreateObject("ADODB.Connection")
con.Open strDB

' Our Recordset Object
Dim rs
Set rs = CreateObject("ADODB.Recordset")
rSQL = "Select * from all_pages where active<>false and id = "& Request.QueryString("id")
Rs.Open rSQL, Con, 1, 3
%>

This code was work MS Access Database system.
What can I do?

Thank you.
 
try this:

rSQL = "Select * from all_pages where active<>'false' and id = "& Request.QueryString("id")

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top