Hello,
I am trying to make a small application.I have the main screen on which a form is displayed with a
drop down box and a radio button.
Once the user select the number from the drop down and clicks the radio button and submit, the following
script is to be executed.
Now this refers to an access query where i am to pass two parameters.However when i execute the script
with the following code:
<html>
<head>
<title> Auction Details</title>
</head>
<body>
<%
dim conn,rs,comm
set comm=server.createobject("adodb.command"
set conn=server.createobject("adodb.connection"
set rs=server.createobject("adodb.recordset"
conn.open "DSN=mydbase"
comm.activeconnection=conn
comm.commandtext="details"
comm.commandtype=2
comm.Parameters.Append comm.createparameter ("abc",adInteger,adparameterinput)
comm.parameters.append comm.createparameter("xyz",advarchar,adparameterinput)
comm.parameters(0).value=request.querystring("number"
comm.parameters(1).value=request.querystring("radio"
set rs=comm.execute
(PS this is just part of the script and i strongly feel that the error is coming from here.)
When i execute the script i get the following error:
ADODB.Command error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/man/list.asp, line 26
Please help me resolve this problem
The datatypes in the database are
integer and text
I am trying to make a small application.I have the main screen on which a form is displayed with a
drop down box and a radio button.
Once the user select the number from the drop down and clicks the radio button and submit, the following
script is to be executed.
Now this refers to an access query where i am to pass two parameters.However when i execute the script
with the following code:
<html>
<head>
<title> Auction Details</title>
</head>
<body>
<%
dim conn,rs,comm
set comm=server.createobject("adodb.command"
set conn=server.createobject("adodb.connection"
set rs=server.createobject("adodb.recordset"
conn.open "DSN=mydbase"
comm.activeconnection=conn
comm.commandtext="details"
comm.commandtype=2
comm.Parameters.Append comm.createparameter ("abc",adInteger,adparameterinput)
comm.parameters.append comm.createparameter("xyz",advarchar,adparameterinput)
comm.parameters(0).value=request.querystring("number"
comm.parameters(1).value=request.querystring("radio"
set rs=comm.execute
(PS this is just part of the script and i strongly feel that the error is coming from here.)
When i execute the script i get the following error:
ADODB.Command error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/man/list.asp, line 26
Please help me resolve this problem
The datatypes in the database are
integer and text