flnMichael
Programmer
Hey,
I want to perform a SQL Query after I have chosen an item through a drop down and have that variable chosen entered into the query. I want to do this all through the same page, no refresh, no new page. Here's what I have:
SQLQuery = "select distinct program from TP_Fact order by program"
Set rs4 = objdbConnection.Execute(SQLQuery)
....
<td>
<b>Program:</b>
<SELECT NAME="program" size="1" tabindex="5">
<option selected value='SELECT_TEST'>What Program?</option>
<%
Do While(rs4.EOF = FALSE)
Response.Write("<option>")
Response.Write(rs4.Fields("Program").value)
Response.Write("</option>")
rs4.MoveNext
Loop
Response.Write("</select></td>")
%>
</td>
SQLQuery = "select TP_Number,TP_Title from TP_Fact where program = ???"
Set rs5 = objdbConnection.Execute(SQLQuery)
??? chosen in the previous drop down. This is where I'm confused...can it be done, or do I have to at least refresh the page with the new value?
Thanks
Mike
I want to perform a SQL Query after I have chosen an item through a drop down and have that variable chosen entered into the query. I want to do this all through the same page, no refresh, no new page. Here's what I have:
SQLQuery = "select distinct program from TP_Fact order by program"
Set rs4 = objdbConnection.Execute(SQLQuery)
....
<td>
<b>Program:</b>
<SELECT NAME="program" size="1" tabindex="5">
<option selected value='SELECT_TEST'>What Program?</option>
<%
Do While(rs4.EOF = FALSE)
Response.Write("<option>")
Response.Write(rs4.Fields("Program").value)
Response.Write("</option>")
rs4.MoveNext
Loop
Response.Write("</select></td>")
%>
</td>
SQLQuery = "select TP_Number,TP_Title from TP_Fact where program = ???"
Set rs5 = objdbConnection.Execute(SQLQuery)
??? chosen in the previous drop down. This is where I'm confused...can it be done, or do I have to at least refresh the page with the new value?
Thanks
Mike