Drop Down List Question
I am using Microsoft's Expression Web program and have the following problem/question.
I have a web page (saved as an .asp extension) that has a drop down list. In the drop down list, I have populated 4 entries, with a corresponding "value" for each entry.
From reviewing the online documentation, it appears as though it should be relatively simple to extract the "value" of the selected item from the drop down list, and then move that value to somewhere else, i.e., another text field on the same web page.
I am making the following assumptions:
1. I want to call a VBA script that will accomplish that whenever the drop down list fires a "change" event. The call I seem to know how to accomplish.
2. The VBA script needs to retrieve the value corresponding to the selected item, and then move it to a text control on the same form (web page). This I don't know how to write, although I am proficient in Visual Basic 6.0.
3. I'm need to use the web page I have developed, not a user form from within VBA.
4. Presume the drop down list control is named: BB_Style and the name of the control in which I want to place the "value" is SKU_Style. The web page form name is BB_DirectOrder.
My first question is, what does that VBA code look like to accomplish this? I have exhausted all the online documentation I can locate, and while there are many references to events and properties relating to this, there is no place that seems to show a working example.
My second question is, how do you reference a control, e.g., a text field on a web page within a VBA script? In VB 6.0, you would reference the form name with a dot (.) and the field name. This doesn't seem to work the same way in VBA and Expression Web.
A long post, but I would greatly appreciate any help that can be offered.
Thanks,
Coop
|