Good Morning,
I am trying to pull Customer Names from a database into an drop down menu. The below code has worked fine on it's current server for the past 2 years. I am trying to move it to a new server and keep getting the following error:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/customerservice/jtac/reports/cases.asp, line 146
I've tried to include the adovbs.inc file, but I still get the same error. Can anyone see anything in my code that would cause this error? Any help would be greatly appreciated!
<tr><td>
<form method="POST" action="<p>
<%
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection"
objConn.ConnectionString = "UID=xxxx;pwd=xxxx;DRIVER={Microsoft ODBC for Oracle};SERVER=xxxx;"
objConn.Open
Dim objRS
Set objRS = Server.CreateObject("ADODB.Recordset"
Dim strSQL
Set strSQL = objConn.execute("SELECT DISTINCT NAME FROM TABLE_LOCATION"
objRS.Open strSQL, objConn
Response.Write "<select name=""prompt0"">"
Response.Write "<option>Choose Customer</option>"
Response.Write "<option value=""""></option>"
Do Until objRS.EOF = True
Response.Write "<option>" & objRS("NAME" & "</option>"
objRS.MoveNext
Loop
Response.Write "</select>"
objRS.close
Set objRS = Nothing
objConn.close
Set objConn = Nothing
%>
<input type="SUBMIT" value="Go">
</form>
<br>
</td></tr>
Best Regards,
Carla
I am trying to pull Customer Names from a database into an drop down menu. The below code has worked fine on it's current server for the past 2 years. I am trying to move it to a new server and keep getting the following error:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/customerservice/jtac/reports/cases.asp, line 146
I've tried to include the adovbs.inc file, but I still get the same error. Can anyone see anything in my code that would cause this error? Any help would be greatly appreciated!
<tr><td>
<form method="POST" action="<p>
<%
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection"
objConn.ConnectionString = "UID=xxxx;pwd=xxxx;DRIVER={Microsoft ODBC for Oracle};SERVER=xxxx;"
objConn.Open
Dim objRS
Set objRS = Server.CreateObject("ADODB.Recordset"
Dim strSQL
Set strSQL = objConn.execute("SELECT DISTINCT NAME FROM TABLE_LOCATION"
objRS.Open strSQL, objConn
Response.Write "<select name=""prompt0"">"
Response.Write "<option>Choose Customer</option>"
Response.Write "<option value=""""></option>"
Do Until objRS.EOF = True
Response.Write "<option>" & objRS("NAME" & "</option>"
objRS.MoveNext
Loop
Response.Write "</select>"
objRS.close
Set objRS = Nothing
objConn.close
Set objConn = Nothing
%>
<input type="SUBMIT" value="Go">
</form>
<br>
</td></tr>
Best Regards,
Carla