I have an error when I was creating a web to add data to microsoft access database
the error is "Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005)[Microsoft][ODBC Microsoft Access Driver]Error in row
/Add.asp, line 54 "
detail of my database:
the name of the database is wardailer
the name of the table is table1
the primary key is ID
the code here :
_______________________________
<HTML><HEAD>
set my_conn= Server.CreateObject("ADODB.Connection")
my_Conn.Open ConnString
set rscheck = my_conn.Execute ("Select email from member where email='" & email & "'")
if rscheck.eof then
been_here_before="No"
end if
RScheck.close
set rs = server.CreateObject("adodb.recordset")
if been_here_before="No" then
sql ="select * from member"
RS.update ' the error is here in this line
%>
</HEAD>
<body bgcolor="#99ccff">
<center><font face="Verdana" size="2">Your Account Has Been Processed!! <br>
Your User ID is : <%=email%> , and your password is : <%=password%>
</font>
<p><a href="login2.asp"><font face="Verdana" size="2">Go to Login Page</font> </a>
</p></center>
<%
else
%>
<center><font face="Verdana" size="2">Your have signup already with this email<br>
Please signup with another your email address.
</font>
<p><a href="signup.asp"><font face="Verdana" size="2">Sign up Again! </font> </a></center>
<%
end if
rs.close
my_conn.Close
set my_conn = nothing
set rs = nothing
%></P></BODY></HTML>
_________________________________
help me plz
thanks alot
05-11-2004, 03:40 AM
buntine
Try using SQL to insert data into the table. Employ the INSERT INTO statement.
without using sql statement really the problem I found it in database itself
thanks buntine
05-11-2004, 05:52 AM
buntine
Ok, good stuff ;)
10-31-2012, 01:31 AM
ethen55
hi al_3asel,
I have the same problem you have mentioned here.
would you tell me how you fixed that?
thx alot
11-01-2012, 07:28 AM
gk53
Just make sure all values you assigned is valid (check for missing value in not null fields, numeric fields must have numeric values - empty is not a numeric, length of value must be less them field size for character values)