I am trying to query a database to return the name field in a database (access 2000) based upon a query. The following is what I have coded thus far:<br>
<br>
<%'form info<br>
SoftID=CInt(request.form("SoftID")<br>
CDID=CInt(request.form("CDID")<br>
HDDID=CInt(request.form("HDDID")<br>
MouseID=CInt(request.form("MouseID")<br>
KeyboardID=CInt(request.form("KeyboardID")<br>
MonitorID=CInt(request.form("MonitorID")<br>
FDDID=CInt(request.form("FDDID")<br>
RAMSize=CInt(request.form("RAMSize")<br>
VideoID=CInt(request.form("VideoID")<br>
CPUID=CInt(request.form("CPUID")<br>
'RAMSize=CInt(RAMSize)<br>
'sending data off to the database<br>
<br>
set conn=server.createobject("ADODB.connection"<br>
set objRS = server.createobject("ADODB.recordset"<br>
<br>
conn.open "DSN=Custom System"<br>
<br>
Response.write(Request("CPUID")<br>
SQLstmt = "select Name from CPU where CPUID=(CPUID)" <br>
Set RS = conn.execute(SQLstmt)<br>
%><br>
I am not sure where the name value is going. Could anyone help me with this? <br>
Norbert
<br>
<%'form info<br>
SoftID=CInt(request.form("SoftID")<br>
CDID=CInt(request.form("CDID")<br>
HDDID=CInt(request.form("HDDID")<br>
MouseID=CInt(request.form("MouseID")<br>
KeyboardID=CInt(request.form("KeyboardID")<br>
MonitorID=CInt(request.form("MonitorID")<br>
FDDID=CInt(request.form("FDDID")<br>
RAMSize=CInt(request.form("RAMSize")<br>
VideoID=CInt(request.form("VideoID")<br>
CPUID=CInt(request.form("CPUID")<br>
'RAMSize=CInt(RAMSize)<br>
'sending data off to the database<br>
<br>
set conn=server.createobject("ADODB.connection"<br>
set objRS = server.createobject("ADODB.recordset"<br>
<br>
conn.open "DSN=Custom System"<br>
<br>
Response.write(Request("CPUID")<br>
SQLstmt = "select Name from CPU where CPUID=(CPUID)" <br>
Set RS = conn.execute(SQLstmt)<br>
%><br>
I am not sure where the name value is going. Could anyone help me with this? <br>
Norbert