Update Fields based on Dropdown Box |
4/20/2008 8:25:08 PM |
ASPRunnerPro General questions | |
W
w0071177 author
I searched forum but can't find one that matches exactly my problem. I need to be able to have the fields in a the Customereply table update based on choosing a dropdown box. The drop down box chooses ClientID and looks up ClientID from the Customerrequest Table. Now I need the remaining fields to automatically update the Customerfirstname and the customerlastname and so on. The table that holds these fields is called Customerrepy. Do I need to add some code in Afteraddrecord events? Any help would be great. Thanks <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=8224&image=1&table=forumtopics' class='bbc_emoticon' alt=';)' /> |
|
J
|
Jane 4/22/2008 |
Hi, str = "select Customerfirstname, customerlastname from Customerrequest where ClientID=" & dict("ClientID")& "" Set rsTemp = server.CreateObject("ADODB.Recordset") rsTemp.open str, dbConnection dict("FieldName1") = rsTemp("Customerfirstname") dict("FieldName2") = rsTemp("customerlastname") rsTemp.Close : set rsTemp = Nothing |