Office 97 Access

Browse the Web with the Microsoft WebBrowser Control

The Microsoft WebBrowser control is an ActiveX control that enables you to view Web pages and other documents on the Internet or an intranet from a Microsoft Access form. The WebBrowser control is provided by Microsoft Internet Explorer 3.0, which is included with Microsoft Office 97. You can also download Microsoft Internet Explorer from Microsoft's corporate Web site (http://www.microsoft.com/) free of charge.

The WebBrowser control is automatically registered with the operating system when you install Internet Explorer, so you can use it from Microsoft Access without first registering it. To add the WebBrowser control to a form, click ActiveX Control on the Insert menu, and then click Microsoft WebBrowser Control in the list of ActiveX controls.
Once you've added the WebBrowser control to a form, you can use the control's Navigate method to open a Web page within the WebBrowser window. For example, if you've added a WebBrowser control named ActiveXCtl0 to a form, you could create the following Load event procedure for the form.

Private Sub Form_Load Me!ActiveXCtl0.Navigate "http://www.baarns.com/" End Sub


Web Browser Control

Web Browser Control Image

The following techniques make the WebBrowseWeb form work:

  • Creating an animation to indicate that the WebBrowser control is busy downloading data.
  • Creating a dialog box used to gather information from the user to save hyperlink data to the Links table.
  • Adding controls and event procedures to the WebBrowseWeb form that let you explore the World Wide Web.

Another use of the Web Control is to browse hyperlinks stored in a table under the HyperLink datatype. In the Developer Solutions sample application, hyperlinks are stored in the Links table. You can add new hyperlinks to a record in the Links table by clicking Hyperlink on the Insert menu or by entering hyperlink data directly into the table. You can also save hyperlink data to the Links table by clicking the Save Location command button on the WebBrowseWeb form.

Back...

 


  Random Thoughts...
Why do they put Braille on the number pads of drive-through bank machines?


Copyright© 1996-1999, Baarns Consulting Group, Inc. - All rights reserved.