Hi hui,
this is my test.html:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252">
<TITLE>Query1</TITLE>
<BODY>
<form>
<SELECT name="type" class='box1'>
<OPTION value='1'>Car</OPTION>
<OPTION value='2'>Boat</OPTION>
<OPTION value='3'>Star</OPTION>
<OPTION value='4'>House</OPTION>
<OPTION value='5'>Computer</OPTION>
</SELECT>
<FORM METHOD="GET" ACTION="Test.ASP">
<INPUT TYPE="Submit" VALUE="Run Query">
</FORM>
</BODY>
</HTML>
and this is my test.asp:
<% @Language=VBScript %>
<html>
<head>
<title>test</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<% type=Request.Form("type"

%>
'Connects to the Access driver and Access database in the Inetpub directory where the database is saved
strProvider = "Driver={Microsoft Access Driver (*.mdb)}; DBQ=E:\Inetpub\
'Creates an instance of an Active Server component
set objConn = server.createobject("ADODB.Connection"

'Opens the connection to the data store
objConn.Open strProvider
'Instantiate Command object and use ActiveConnection property to
'attach connection to Command object
set cm = Server.CreateObject("ADODB.Command"

cm.ActiveConnection = objConn
<form>
if (type = 1) then
sqltext = "SELECT * FROM Car"
elseif (type = 2) then
sqltext = "SELECT * FROM Boat"
elseif (type = 3) then
sqltext = "SELECT * FROM Star"
elseif (type = 4) then
sqltext = "SELECT * FROM House"
elseif (type = 5) then
sqltext = "SELECT * FROM Computer"
end if
'set cnn = Server.CreateObject("ADODB.Connection"

'cnn.Open "driver={Microsoft Access Driver (*.mdb)};;DBQ=E:\Inetpub\
set Result = cnn.Execute(sqltext)
do until Results.eof
Response.Write(Results("Cost"

))
Results.movenext
<% loop %>
</form>
</body>
</html>
I put <form> before the combo box in the test.html and before the select statements in the test.asp.
i put <%type=request.form%> and <%loop%>
i went to my database and made a field called 'Cost'.
i am using Windows NT 4.0 and IIS 5.0.
it's still not working though.
ruth
ruth.jonkman@wcom.com