Viewing web pages in a form

message from Dave on 5 May 2004
Can i use A97 to act like a browser?

I want to allow users to access certain internet sites without having to
change from my Access DB to internet explorer

thanks

Dave
 
Terry Kreft replied to Dave on 5 May 2004
Yes, follow the instructions below

1) Place a Microsoft WebBrowser contol on your form
2) Size the control to the desired size
(this can only be achieved by dragging on the sizing handles - the
property page does not work)
3) Cut the control to the clipboard
4) Paste the control back onto the form from the clipboard
5) Position the control

If you need to resize the control follow the instructions from 2 above.

To use the control the easiest way is to get a handle to the Webbrowser
object, in code you could do something like

Dim w1 As SHDocVw.WebBrowser
If TypeOf Me.ActiveXCtl2.Object Is SHDocVw.WebBrowser Then
Set w1 = Me.ActiveXCtl2.Object

w1.Navigate2 "www.microsoft.com
Set w1 = Nothing
End If

Where ActiveXCtl2 is the name of the control obkject on your form.
 

Archived message: Viewing web pages in a form (MS Access Database)