object browser control

A

a

access 2003 web broswer control on access form


this code here when i choose view page source you will see code like this
<select id=cbo_city name='cbo_city' style='width:98%' size=1 >
<OPTION VALUE="" >Select one ...</option>
<OPTION VALUE='1' >abcd</option>
<OPTION VALUE='3' >lbc</option>
<OPTION VALUE='3' >opc</option>



This is elemints in the site
Form 0 (form1), element 0 (A_n), type text, contains
Form 0 (form1), element 1 (cbo_city), type select-one, contains
Form 0 (form1), element 2 (b1), type button, contains search

(1) why the error message appear?
Object doesn't support this property or method (Error 438)
when click on a command button on access 2003 form

command1click
Me.broWebpage.Document.all("cbo_city").selectedIndex = 1
end sub

in this line of code
Me.broWebpage.Document.all("cbo_city").selectedIndex = 1
(2) also when comment this line of code :
Me.broWebpage.Document.all("cbo_city").selectedIndex = 1
the next code also not run
Me.broWebpage.Document.Forms(0).Submit
again submit not work also why ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top