L
LC
Hi,
I have two or more sql statements that depends on the
other on the same page. For example I have strSQL3 and
then strSQL4 will need the result from the dropdown of
strSQL3 to start its sql.
strSQL3 = "SELECT DISTINCT tblEV3Location.Code FROM
tblEV3Location ORDER BY tblEV3Location.Code;"
<% set cars3=adoCon.execute(strSQL3) %>
<select name="Code">
<% 'Loop through the recordset to make each entry
in the list. %>
<% do while not cars3.eof %>
<Option value = "<%= cars3(0) %>"> <%=
cars3(0) %></Option>
<%cars3.movenext
loop%>
</select>
How would I do something like this where the Code is the
name of the drop-down?:
strSQL4 = "SELECT DISTINCT tblEV3Location.Division FROM
tblEV3Location WHERE tblEV3Location.Division='Code';"
Thanks.
I have two or more sql statements that depends on the
other on the same page. For example I have strSQL3 and
then strSQL4 will need the result from the dropdown of
strSQL3 to start its sql.
strSQL3 = "SELECT DISTINCT tblEV3Location.Code FROM
tblEV3Location ORDER BY tblEV3Location.Code;"
<% set cars3=adoCon.execute(strSQL3) %>
<select name="Code">
<% 'Loop through the recordset to make each entry
in the list. %>
<% do while not cars3.eof %>
<Option value = "<%= cars3(0) %>"> <%=
cars3(0) %></Option>
<%cars3.movenext
loop%>
</select>
How would I do something like this where the Code is the
name of the drop-down?:
strSQL4 = "SELECT DISTINCT tblEV3Location.Division FROM
tblEV3Location WHERE tblEV3Location.Division='Code';"
Thanks.