IE Automation - Add Value Into Combo Box

abbaddon223

Registered User.
Local time
Today, 11:40
Joined
Mar 13, 2010
Messages
162
Hi,

I'm hoping someone could kindly help me please?

I'm trying to add a value from access into a combo box on a web page. I can get the combo box to refresh, but not add in a value

The HTML for the combo box is

<tr><td align="right">Campaign: </td><td align="left"><span id="LogiNCamPaigns"><select size="1" name="VD_campaign" id="VD_campaign" onfocus="login_allowable_campaigns()">
<option value=""></option>

And I've been using

ie.Document.all.Item("VD_campaign").focus

To refresh it (works great)

And attempting to put a value into it (which is an option in the combo box)

ie.Document.getElementById("VD_campaign").Value = "201 - Campaign-1"

But nothing happens - not even an error

Thank you for any help on this!!!
 
So you're actually trying to update the HTML from Access? How are you publishing the changed HTML? Can you do that from Access?
 

Users who are viewing this thread

Back
Top Bottom