vba coding a browser activeX control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everyone.
I am trying to write code to get driving directions and distance out of a
webpage. I did this successfully in VB 6.0 using a hidden browser control and
then reading the text off the webpage. I tried the same code in my Access
2000 vba app, but it doesn't seem to work. Here is where I run into a problem:

txtDrivingDistance.Text =
GetDrivingDistance(webDirections.Document.Body.Innertext)

the part that reads the content of the document doesn't return anything and
thus I have no text to read.
Any help would really be appreciated.

Josh
 
OTTOMH try:
txtDrivingDistance.Value =
GetDrivingDistance(webDirections.Object.Document.Body.Innertext)

NOTE: Access TextBox controls expose the Value prop, not the Text prop, as
the default prop. YOu cannot write the Text property unless the control has
the focus.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top