ACC: How to Explore an Internet Site from MS Access 2.0 or 95Last reviewed: August 29, 1997Article ID: Q160122 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. This article describes a technique for using the Shell() function in Microsoft Access 2.0 or 7.0 to start Microsoft Internet Explorer by double- clicking a Web address field on a form. In Microsoft Access 97, this functionality is built-in. The label, command button, and image form controls contain Hyperlink properties that allow you to jump to a Web address just by clicking the control. This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to the "Building Applications with Microsoft Access for Windows 95" manual. NOTE: Visual Basic for Applications is called Access Basic in Microsoft Access version 2.0. For more information about Access Basic, please refer to the "Building Applications" manual.
MORE INFORMATIONThis technique enables you to run Microsoft Internet Explorer without using special ActiveX controls or Windows application programming interface (API) procedures in your application. It passes the Uniform Resource Locator (URL) to Microsoft Internet Explorer as a command-line argument. For example, "C:\Program Files\Internet Explorer\Iexplore.exe www.microsoft.com." You can modify this example to work with any Web browser software that accepts a URL as a command-line argument. To start Microsoft Internet Explorer using this technique, you must know the full path to the file Iexplore.exe, or the file's path must be set in your computer's PATH variable. The following example shows you how to start Microsoft Internet Explorer by double-clicking a field on a form.
REFERENCESFor more information about using the Shell() function, search the Help Index for "Shell function." For information about opening files or hyperlinks using Windows API calls, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q148632 TITLE : ACC: Start Files or Hyperlinks with Windows API ShellExecute() Keywords : kbusage PgmHowTo FmsHowTo IntpWeb Version : 2.0 7.0 Platform : WINDOWS Hardware : x86 Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |