You can use the Web browser control that comes with Microsoft Internet Explorer 5.0 or higher to allow users to access the Internet while working on an Access form. For example, suppose workers at a company need to input the latest information about a conference; the Web browser control will let them search the Web for that information without leaving their form. Find out how this works by following these steps:
- Open the form in design view, and click where you want the control to appear.
- Go to Insert | ActiveX Control and click on Microsoft Web Browser Control in the list of ActiveX controls. This control is automatically named WebBrowser1.
- Click on the Form Properties box.
- Under the Event tab, click in the On Load box and select Event Procedure.
- Click on the Expression Builder box.
the prompt enter the following code:
- Close the VB windows.
Now when you connect to the Internet and open the form, the control will display the home page of the company. From here you can search the Web, e-mail, etc. If you are not connected, the control will display an "Action cancelled" message.
Miss a tip?
Check out the Microsoft Access archive, and catch up on our most recent Access tips.
Help users increase productivity by automatically signing up for TechRepublic's free Microsoft Office Suite newsletter, featuring Word, Excel, and Access tips, delivered each Wednesday.