FurryGorilla
Technical User
Hi
I'm currently trying to get to grips with an ASP system that is going to implemented shortly.
I've made a reasonable start on it by using the code currently present but now I want to check that a part number exists in access data base table against the part number entered on a web page.
The database is configured correctly as pages leading up to this page work fine. The table is called routing and has fields named part, opno, cell, desc and stdadmin. The database is called routings1. The part number is not necessarily just a number, characters may also be present.
The code I currently have is as follows but I get an error message pointing to the last line in the code below.
<% inp = request("cellinput"
*1%>
<%
Query="Select * from routing where part = "
Query=Query&request("part"
%>
<%
'Create a connection object
Set cn = Server.CreateObject("ADODB.Connection"
'Open a connection; the string refers to the DSN
cn.Open "routings"
Set RSlist =Server.CreateObject("ADODB.recordset"
%>
<%RSlist.Open Query,cn,1%>
Any help would be appreciated.
Thanks in advance
Chris
I'm currently trying to get to grips with an ASP system that is going to implemented shortly.
I've made a reasonable start on it by using the code currently present but now I want to check that a part number exists in access data base table against the part number entered on a web page.
The database is configured correctly as pages leading up to this page work fine. The table is called routing and has fields named part, opno, cell, desc and stdadmin. The database is called routings1. The part number is not necessarily just a number, characters may also be present.
The code I currently have is as follows but I get an error message pointing to the last line in the code below.
<% inp = request("cellinput"
<%
Query="Select * from routing where part = "
Query=Query&request("part"
%>
<%
'Create a connection object
Set cn = Server.CreateObject("ADODB.Connection"
'Open a connection; the string refers to the DSN
cn.Open "routings"
Set RSlist =Server.CreateObject("ADODB.recordset"
%>
<%RSlist.Open Query,cn,1%>
Any help would be appreciated.
Thanks in advance
Chris