Command text was not set for the command object
Hi
I m getting the following error message:
Error Type:
Microsoft JET Database Engine (0x80040E0C)
Command text was not set for the command object.
/dbdisplay.asp, line 18
Will b great if someone help me out.
Cheers
------------------------------------------
<% @LANGUAGE = VBSCRIPT %>
option Explicit
<%
set con=server.CreateObject ("ADODB.Connection")
set rs=server.CreateObject ("ADODB.Recordset")
DBStr="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" &_
"C:\Inetpub\wwwroot\admin\webdb.mdb" & ";"
sql = "select * from menu"
con.Open DBStr
set rs = con.Execute (str)
Response.Write "connection established"
%>
__________________
Cheers
Sheraz
|