TudorSmith
Programmer
Hi
I am creating a page to allow "Edit Details"
When the page opens, I retrieve the record details from the table...one of which is an ID reference called SiteID
When the page loads, it displays the Site Details in a <SELECT> combo box (There are 6 sites to choose from)
Everything is working fine, but what I want is for the Combo Box to automatically be selected on the value of the record I am retrieving.
So, if I retrieve the recordset and the SiteID = 3 (London) and the List of possible options is: "Bristol", "Edinburgh", "London", "Glasgow", "Liverpool" then at the moment the user sees "Bristol" in the combo box, but this is wrong, because the record for the retrived value should be "London"
Is there a way to populate the <SELECT> list first, then make it display the actual value for the record I'm retrieving?
Thanks
Tudor
birklea ~©¿©~ <><
Dim objJedi as Jedi.Knight
Set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))
I am creating a page to allow "Edit Details"
When the page opens, I retrieve the record details from the table...one of which is an ID reference called SiteID
When the page loads, it displays the Site Details in a <SELECT> combo box (There are 6 sites to choose from)
Everything is working fine, but what I want is for the Combo Box to automatically be selected on the value of the record I am retrieving.
So, if I retrieve the recordset and the SiteID = 3 (London) and the List of possible options is: "Bristol", "Edinburgh", "London", "Glasgow", "Liverpool" then at the moment the user sees "Bristol" in the combo box, but this is wrong, because the record for the retrived value should be "London"
Is there a way to populate the <SELECT> list first, then make it display the actual value for the record I'm retrieving?
Thanks
Tudor
birklea ~©¿©~ <><
Dim objJedi as Jedi.Knight
Set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))