scottdaohio
IS-IT--Management
Any help anyone can provide for this error, would be GREATLY appreciated. Below is the code I am using on a data entry form, to enter data into a SQL Server database, off of an ASP page. I have created an ODBC System DSN connection named "WEB." The SQL Server has a table named "tblApplicant", with a username of "sa" and a password of "Password." The problem I am getting, points to the objRS.Open line, where I get the following error:
Error Type:
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
My question is, what am I doing wrong???????
<%@ Language=VBScript %>
<!--METADAT TYPE="typelib" FILE = "D:\Program Files\Common Files\System\ADO"-->
<%
Dim objConn
Dim objRS
Set objConn = Server.CreateObject("ADODB.Connection"
Set objRS = Server.CreateObject("ADODB.Recordset"
objConn.Open "DSN=Web","sa","password"
objRS.Open "tblApplicant", objConn, adOpenStatic, adLockOptimistic <-- Error?????
objRS.AddNew
.......
%>
Any help you can provide, would be most appreciated. Thanks!!!
Error Type:
ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
My question is, what am I doing wrong???????
<%@ Language=VBScript %>
<!--METADAT TYPE="typelib" FILE = "D:\Program Files\Common Files\System\ADO"-->
<%
Dim objConn
Dim objRS
Set objConn = Server.CreateObject("ADODB.Connection"
Set objRS = Server.CreateObject("ADODB.Recordset"
objConn.Open "DSN=Web","sa","password"
objRS.Open "tblApplicant", objConn, adOpenStatic, adLockOptimistic <-- Error?????
objRS.AddNew
.......
%>
Any help you can provide, would be most appreciated. Thanks!!!