I'm trying to design a page that pulls info from an Access database into the ASP page. I've gotten earlier versions to work, such as this Pulls the first 300 records from the database. , but when I tried to create a form page to pull the info, it gives me the following error
<< [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. >>
Here is the page if you want to look at it. Just type in 66984 in the form box and hit submitt. All of this is based off a book I recently bough that gives examples. The example I am trying to go off of is This One which does work (put 3 in the form field and hit submitt).
Here is the code from my ASP page trying to pull the record based off the info from the Form page:
<%
varCPT1= request.form("CPT_Code"
response.write varCPT1 'for testing
dim ORSp
Set oRSp=server.createobject("ADODB.recordset"
sqltext="Select * from Med_2000 "
sqltext=sqltext& " WHERE CPT=" & varCPT1 & ";"
oRSp.open sqltext, "dsn=Medicare"
%>
Any help would be greatly appreciated.
Jay
<< [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression. >>
Here is the page if you want to look at it. Just type in 66984 in the form box and hit submitt. All of this is based off a book I recently bough that gives examples. The example I am trying to go off of is This One which does work (put 3 in the form field and hit submitt).
Here is the code from my ASP page trying to pull the record based off the info from the Form page:
<%
varCPT1= request.form("CPT_Code"
response.write varCPT1 'for testing
dim ORSp
Set oRSp=server.createobject("ADODB.recordset"
sqltext="Select * from Med_2000 "
sqltext=sqltext& " WHERE CPT=" & varCPT1 & ";"
oRSp.open sqltext, "dsn=Medicare"
%>
Any help would be greatly appreciated.
Jay
