damionz
06-09-2005, 03:31 AM
Can anyone help me please... :(
when i open http://localhost/webblog/insertblog.asp , it show like this...
Error Type:
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/webblog/insertblog.asp, line 22
and this is for my script...can anyone correct it, please...
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<!-#include file="adovbs.inc"->
<% Dim oConn, objRs, letakfile %>
<% letakfile = Server.Mappath("blog.mdb") %>
<% Set oConn = Server.CreateObject("ADODB.Connection") %>
<% oConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & letakfile %>
<% Set objRs = Server.CreateObject("ADODB.Recordset") %>
<% objRs.Open "webblog", oConn, adOpenKeySet, adLockOptimistic %>
<% randomize %>
<% acak=round(rnd * 1234567890) %>
<% acak="Blog" & acak %>
<% objRs.AddNew %>
<% objRs("BlogID")=acak %>
<% objRs("tanggal")=request.form("tanggal") %>
<% objRs("waktu")=request.form("pukul") %>
<% objRs("judul")=request.form("judul") %>
<% objRs("nama")=request.form("nama") %>
<% objRs("blog")=request.form("blog") %>
<% objRs.Update %>
<b>"<%=objRs("judul")%>"</b>
Tanggal: <%=objRs("tanggal")%>
Pukul: <%=objRs("waktu")%>
Dibuat oleh: <%=objRs("nama")%>
<%=objRs("blog")%>
<% objRs.Close%>
</body>
</html>
Any feedback greatly appreciated,
Acha :)
when i open http://localhost/webblog/insertblog.asp , it show like this...
Error Type:
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/webblog/insertblog.asp, line 22
and this is for my script...can anyone correct it, please...
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<!-#include file="adovbs.inc"->
<% Dim oConn, objRs, letakfile %>
<% letakfile = Server.Mappath("blog.mdb") %>
<% Set oConn = Server.CreateObject("ADODB.Connection") %>
<% oConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & letakfile %>
<% Set objRs = Server.CreateObject("ADODB.Recordset") %>
<% objRs.Open "webblog", oConn, adOpenKeySet, adLockOptimistic %>
<% randomize %>
<% acak=round(rnd * 1234567890) %>
<% acak="Blog" & acak %>
<% objRs.AddNew %>
<% objRs("BlogID")=acak %>
<% objRs("tanggal")=request.form("tanggal") %>
<% objRs("waktu")=request.form("pukul") %>
<% objRs("judul")=request.form("judul") %>
<% objRs("nama")=request.form("nama") %>
<% objRs("blog")=request.form("blog") %>
<% objRs.Update %>
<b>"<%=objRs("judul")%>"</b>
Tanggal: <%=objRs("tanggal")%>
Pukul: <%=objRs("waktu")%>
Dibuat oleh: <%=objRs("nama")%>
<%=objRs("blog")%>
<% objRs.Close%>
</body>
</html>
Any feedback greatly appreciated,
Acha :)