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"

CDID=CInt(request.form("CDID"

HDDID=CInt(request.form("HDDID"

MouseID=CInt(request.form("MouseID"

KeyboardID=CInt(request.form("KeyboardID"

MonitorID=CInt(request.form("MonitorID"

FDDID=CInt(request.form("FDDID"

RAMSize=CInt(request.form("RAMSize"

VideoID=CInt(request.form("VideoID"

CPUID=CInt(request.form("CPUID"

'RAMSize=CInt(RAMSize)<br>
'sending data off to the database<br>
<br>
set conn=server.createobject("ADODB.connection"

set objRS = server.createobject("ADODB.recordset"

<br>
conn.open "DSN=Custom System"<br>
<br>
Response.write(Request("CPUID"

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