No worries Tcasp:):D

:):):),here is the code.By the way it's got a bit of javascript validation which you may or may not want
just change my fields such as lawNo and ComponentNo to your field names.Your DSN ,server path and file name and all that kind of stuff must be different aswell.
<html>
<head>
<TITLE>Category and Subcategory Drop Down Lists Demonstration</TITLE>
<title>Inputting a new Question</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT Language="JavaScript">
function lawChanged()
{
if(form1.LawSelect.selectedIndex==0){ alert("You must choose a Law")}
else
{
form1.action="http://pertinax.cms.shu.ac.uk/mmtec/mm32/HughInputAQuestion1.asp"
form1.submit()
}
}
function mySubmit()
{
somethingWrong=false
if(form1.ComponentSelect.selectedIndex==0)
{
alert("You must choose a Component")
somethingWrong=true
}
if(form1.LawSelect.selectedIndex==0)
{
alert("You must choose a Law")
somethingWrong=true
}
if (!somethingWrong)
{
alert("LawNo selected =" + form1.LawSelect.selectedIndex + " and component selected is " + form1.ComponentSelect.selectedIndex)
astring="http://pertinax.cms.shu.ac.uk/mmtec/mm32/HughInputAQuestion2.asp?LawNo=" + form1.LawSelect.selectedIndex+"&ComponentNo=" + form1.ComponentSelect.selectedIndex
alert("Am calling " + astring)
form1.action= astring
}
}
function ComponentChanged()
{
if(form1.ComponentSelect.selectedIndex==0) { alert("You must choose a Component") }
else
{
document.all.Submit.style.visibility='visible'
}
}
</SCRIPT>
</head>
<body>
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
HaveChosen=False
Set MyConn=Server.CreateObject("ADODB.Connection")
Set Rs=Server.CreateObject("ADODB.RecordSet")
Set Rs2=Server.CreateObject("ADODB.RecordSet")
MyConn.Open("mm32")
Rs.Open "SELECT * From Law ORDER by lawNo", MyConn, 1, 2
LawChosen=Request.Form("LawSelect")
If Not IsNull(LawChosen) Then
LawChosen=Cint(LawChosen)
SQLString="SELECT * From Component WHERE lawNo=" & LawChosen
Rs2.Open SQLString, MyConn, 1, 2
HaveChosen=True
End If
Response.write("")
Response.write("<P>")
Response.write("<P>")
Response.write("First Select a Law<P>")
Response.write("<form name='form1' method='post' >")
Response.write("<SELECT Name='LawSelect' SINGLE size=10 onChange='lawChanged()'> ")
Response.write("<OPTION Value='NONE'>--Choose a Law--")
While NOT Rs.EOF
astring="<OPTION VALUE=" & Rs("lawNo")
If Rs("lawNo") = LawChosen Then
astring=astring & " SELECTED"
End if
Response.write(astring & ">" & Rs("lawNo") & ". " & Rs("lawText"))
Rs.MoveNext
WEND
Response.write("</SELECT>")
If HaveChosen Then
Response.write("<SELECT Name='ComponentSelect' SINGLE size=10 onChange='ComponentChanged()' > ")
Response.write("<OPTION Value='NONE'>--Choose a Component--")
While NOT Rs2.EOF
astring="<OPTION VALUE=" & Rs2("componentNo") & ">" & Rs2("componentNo") & ". " & Mid(Rs2("componentText"),1,30)
Response.write( astring & "<BR>")
Rs2.MoveNext
WEND
Response.write("</SELECT>")
End If
Response.write("<p>")
Response.write(" <input type='submit' name='Submit' value='Submit' onClick='mySubmit()' STYLE='visibility:hidden'>")
Response.write("</p>")
Response.write("</form>")
Response.write("<p><strong></strong> </p>")
%>
</body>
</html>
andrew