jarv
05-14-2009, 02:57 PM
Hi,
I have 2 tables in my database,
Stores and Branches
I would like to allow a user to select a Store from a dropdown and then for another dropdown to appear for the user to select the Branch depending on the store selected using an INNER JOIN in my SQL on the StoreID
Can anyone help?
So far I have:
<%
Set rsStore = objConn.Execute("SELECT * FROM stores")
Dim StoreName : StoreName = request.QueryString("StoreName")
%>
Welcome <% = Session("rsUser")%>,
<form name="form3" method="post" action="">
<select name="menu2" onChange="MM_jumpMenu('parent',this,0)" class="textbox">
<option value="">Please choose a Store!</option>
<%Do While Not rsStore.EOF%>
<option value="add-report.asp?StoreName=<%=rsStore("StoreName")%>">
<%= rsStore("StoreName")%></option>
<%rsStore.MoveNext
Loop%>
</select>
</form>
Just like Example 1 here (http://www.mattkruse.com/javascript/dynamicoptionlist/)
I have 2 tables in my database,
Stores and Branches
I would like to allow a user to select a Store from a dropdown and then for another dropdown to appear for the user to select the Branch depending on the store selected using an INNER JOIN in my SQL on the StoreID
Can anyone help?
So far I have:
<%
Set rsStore = objConn.Execute("SELECT * FROM stores")
Dim StoreName : StoreName = request.QueryString("StoreName")
%>
Welcome <% = Session("rsUser")%>,
<form name="form3" method="post" action="">
<select name="menu2" onChange="MM_jumpMenu('parent',this,0)" class="textbox">
<option value="">Please choose a Store!</option>
<%Do While Not rsStore.EOF%>
<option value="add-report.asp?StoreName=<%=rsStore("StoreName")%>">
<%= rsStore("StoreName")%></option>
<%rsStore.MoveNext
Loop%>
</select>
</form>
Just like Example 1 here (http://www.mattkruse.com/javascript/dynamicoptionlist/)