MikeT,
I have a page that does exactly what you are looking for. The best way to do it is to use your VBSCRIPT and query results to create a client side JavaScript function. This function can just be a series of if loops which checks the value of the first dropdown and changes the value of the second dropdown accordingly. In my case, I have a dropdown and a text box. The function just gets fired using the onChange() event for the dropdown. Here is a section of my code. It should give you an idea of what I am doing:
Response.Write "<SCRIPT LANGUAGE=""JavaScript"">" & vbcrlf
Response.Write "<!--" & vbcrlf
Response.Write "function showDescription(PartID,Description) {" & vbcrlf
Response.Write " var select = eval(PartID.selectedIndex);" & vbcrlf
Response.Write " var catId = PartID.options[select].value;" & vbcrlf
Response.Write " var d = Description;" & vbcrlf
rs.MoveFirst
Response.Write " if (catId == '" & trim(rs.Fields("PRTNUM_01"

) & "'){" & vbcrlf
Response.Write " d.value='" & trim(rs.Fields("PMDES1_01"

) & "';" & vbcrlf
Response.Write " }" & vbcrlf
rs.MoveNext
Do While not rs.EOF
Response.Write " else if (catId == '" & trim(rs.Fields("PRTNUM_01"

) & "'){" & vbcrlf
Response.Write " d.value='" & trim(rs.Fields("PMDES1_01"

) & "';" & vbcrlf
Response.Write " }" & vbcrlf
rs.MoveNext
loop
Response.Write "} // end function" & vbcrlf
Response.Write "//-->" & vbcrlf
Response.Write "</SCRIPT>" & vbcrlf
The call from the dropdown in the resultant HTML file is as follows:
<TD ALIGN="CENTER"><SELECT NAME = "PartID1" onchange="showDescription(document.ProdForm.PartID1, document.ProdForm.Description1)">
<OPTION SELECTED VALUE = ""></OPTION>
<OPTION VALUE = "16902005">16902005</OPTION>
<OPTION VALUE = "16902007">16902007</OPTION>
<OPTION VALUE = "16902008">16902008</OPTION>
<OPTION VALUE = "16902009">16902009</OPTION>
<OPTION VALUE = "16902010">16902010</OPTION>
<OPTION VALUE = "16902011">16902011</OPTION>
<OPTION VALUE = "16902065">16902065</OPTION>
<OPTION VALUE = "GTB/040/40">GTB/040/40</OPTION>
</SELECT></TD>
I hope you can understand all that. At the onChange event, I call the showDescription function with the dropdown and the text box as arguments. The function checks the value of the dropdown and assigns a value to the text box accordingly. Mise Le Meas,
Mighty
