Hello,
i'm learning asp.While inserting data into access database,
i used follwing code(asp file) it actually inserts the data
but gives Error. Please help.
Error Type :
ADODB.Recordset (0x800A0E78)
Operation is not allowed when the object is closed.
/myasp/MailListInsert.asp, line 13
********
The code for
MailListInsert.asp
<%@ language=VBScript %>
<html>
<head><title>This is ASP Page</title></head>
<body>
<%
info=" ' "&Request.Form("t1"
&" ',' "&Request.Form ("t2"
&" ',' "&Request.Form ("t3"
&" ',' "&Request.Form ("t4"
&" ' ,' "&Request.Form ("t5"
&" '"
%>
<%
set con= Server.Createobject("adodb.Connection"
con.Open "dsn=acc"
set rs= con.Execute("insert into MailingList(FirstName,LastName,City,Country,Email) values("&info&"
"
%>
<%
rs.close
con.close
%>
i'm learning asp.While inserting data into access database,
i used follwing code(asp file) it actually inserts the data
but gives Error. Please help.
Error Type :
ADODB.Recordset (0x800A0E78)
Operation is not allowed when the object is closed.
/myasp/MailListInsert.asp, line 13
********
The code for
MailListInsert.asp
<%@ language=VBScript %>
<html>
<head><title>This is ASP Page</title></head>
<body>
<%
info=" ' "&Request.Form("t1"
%>
<%
set con= Server.Createobject("adodb.Connection"
con.Open "dsn=acc"
set rs= con.Execute("insert into MailingList(FirstName,LastName,City,Country,Email) values("&info&"
%>
<%
rs.close
con.close
%>