Wherecan I find access 2003 webbrowser documentation?

Wherecan I find access 2003 webbrowser documentation?The closest I can come is http://msdn.microsoft.com/en-us/library/aa752085%28v=vs.85%29.aspx but this is woefully inadequate.
LVL 17
ramromconsultant Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
0
ramromconsultant Author Commented:
http://msdn.microsoft.com/en-us/library/aa752043%28v=VS.85%29.aspx gets me a little closer, but I don't know how to tell the control to actually trigger an event.

I entered the sample code for Navitage2. The VBA compiler recognizes it (I can change the parameter list and get an error). But the event does not fire!

Stumbling around in the dark I righ-tclicked the control, chose build event - which added:
Private Sub WebBrowser8_Updated(Code As Integer)

End Sub
to the form module.

But that action also caused WebBrowser8_BeforeNavigate2 to fire when expected!

Duh!  

Any guidance as to what is happening or where to get real solid information?
0
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
I must say it's pretty sketchy on documentation ...

mx
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

ramromconsultant Author Commented:
DatabaseMX: I've seen that link before. Very hard to read. I doubt that it answers my question.

Emboldened by my thrashing I tried adding code for DocumentComplete and NavigateComplete2. Both give compile errors!

My immediate goal is to capture the URL of the oage displayed.
0
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
<<Any guidance as to what is happening or where to get real solid information? >>

 I worked with the control on one project, but there is very little documentation on it as you have found.

  Let me look at what I did for that project.  I'd post it, but it was written for a client and they own the rights to it.

  It was done for someone that had hired people to check Google ad placement.   The app would track how often searches needed to be performed, track when they did the searches, and record the result of the ad placement.

Jim.
0
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
Looking back at the project, I actually didn't do all that much with the control itself.   Just a go button:

Private Sub btnGo_Click()

        ' Navigate to a URL
10      Me.ocxWeb.Navigate Me.txtSearchURL, navNoHistory + navNoReadFromCache + navNoWriteToCache

20      Me.txtActualRank.Enabled = True
30      Me.txtNewBid.Enabled = True
40      Me.txtComment.Enabled = True
50      Me.txtActualRank.SetFocus

End Sub


 and then some status messages off the control:



Private Sub ocxWeb_BeforeNavigate2(ByVal pDisp As Object, _
                                   URL As Variant, Flags As Variant, _
                                   TargetFrameName As Variant, _
                                   PostData As Variant, Headers As Variant, Cancel As Boolean)
10      Me.lblStatusNav.Caption = "Navigating to " & URL & "..."
20      Me.txtSearchURL = URL
End Sub

Private Sub ocxWeb_DownloadBegin()
10      Me.lblStatusDL.Caption = "Downloading data..."
End Sub

Private Sub ocxWeb_DownloadComplete()
10      Me.lblStatusDL.Caption = "Ready."
End Sub

Private Sub ocxWeb_NavigateComplete2( _
        ByVal pDisp As Object, URL As Variant)
10      Me.lblStatusNav.Caption = "Site found."
20      Me.txtSearchURL = URL
End Sub


  I do remember clearly that I had to dig for documentation and it wasn't much.  Thankfully the project never went further (I didn't for example have to parse the page).

  One thing to keep in mind; in Access, unless the property sheet says "[Event Procedure]" for an event, the event will not fire even if code exists in the VBA project.  This is not a bug, but an actual design decision for performance.   By using this as a flag, Access can quickly decide if an event needs to fire without having to search the VBA project.

Jim.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
OK the property you want is the LocationURL    Also there is the LocationName.

Or you can pickup the URL as I did in the NavigateComplete2 event.

Jim.
0
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
And BTW, there's not much to that control.  Don't know what you plan to do with it, but there are only a handful of methods and properties.  

Microsoft apparently lost interest in this and a handful of other controls which they started work on, then dropped after not going to far with any of them.

My guess is they switched to developing native controls because Access doesn't have a full COM interface like VB does, so many of  the controls would not work with Access properly.

Jim.
0
Jeffrey CoachmanMIS LiasonCommented:
Yes for me it is not entirely clear on what your ultimate goal is with the control.
..To use it for some specific unknown reason, or are you just wanting to know more about it?

In the most basic sense it is a very basic way to display web data in MS access.
(another popular use was to use it to display HTML formatted text)

Like some of these controls, some events are only accessible through VBA (not the property box), so I understand why that part is confusing.

There are dozens of posts here where people want more direct "Control" over this control. (Open hyperlinks, multiple instances, support for non-IE browsers, filling in web forms with MS Access form data, inserting website passwords, ...ect)

For me, most of this was not really worth the trouble.
For most of the other stuff, you can actually launch IE from MS Access(with multiple tabs , ..etc)

Like Jim, my felling is that MS just left this a s a simple way to view web data in an access form.

JeffCoachman
0
ramromconsultant Author Commented:
Thanks for all the good input. I will document my results and split points soon..
0
ramromconsultant Author Commented:
I wound up using:

Private Sub WebBrowser8_NavigateComplete2( _
        ByVal pDisp As Object, URL As Variant)
20      Me!txtAddressBar = URL
End Sub

Despite other comments there is no way to associate [eventprocedure] with this handler, and it works anyway.
0
Jeffrey CoachmanMIS LiasonCommented:
You go boy...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.