ACC: Start Files or Hyperlinks with Windows API ShellExecute() (148632)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q148632 SUMMARY
Advanced: Requires expert coding, interoperability, and multi-user skills.
This article shows you how to use the Windows 32-bit application
programming interface (API) ShellExecute() function to start an application
associated with a given file extension without having to know the name of
the associated application. For example, you can start Microsoft Paint by
passing the file name Bubbles.bmp to the ShellExecute() function. Or, you
can connect to the World Wide Web (by using a Web browser installed on your
computer) by passing a hyperlink or URL (Uniform Resource Locator) to the
API function.
NOTE: Microsoft Access 97 has this functionality built in.
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.
REFERENCES
For information about using the Windows 16-bit API ShellExecute() function in Microsoft Access version 2.0, please see the following article in the Microsoft Knowledge Base:
121157 How to Start Doc with Windows API ShellExecute() Function
For more information about the ShellExecute() function, please see the
Microsoft Win32 SDK "Programmer's Reference."
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbProgramming KB148632 |
---|
|