OFF97: Using Automation to Run Microsoft AccessLast reviewed: August 28, 1997Article ID: Q167472 |
The information in this article applies to:
SUMMARYAdvanced: Requires expert coding, interoperability, and multi-user skills. This article demonstrates how to use Automation from a Microsoft Office 97 program with Visual Basic for Applications to start Microsoft Access, and then display a new category form from the Northwind Sample database. It also uses Visual Basic for Applications to fill some fields on that form, and then saves the record. This article assumes that you are familiar with Visual Basic for Applications and creating Microsoft Access programs using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to your version of "Building Applications with Microsoft Access."
MORE INFORMATIONMicrosoft provides examples of Visual Basic for Applications procedures for illustration only, without warranty either expressed or implied, including, but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The Visual Basic procedures in this article are provided 'as is' and Microsoft does not guarantee that they can be used in all situations. While Microsoft support engineers can help explain the functionality of a particular macro, they will not modify these examples to provide added functionality, nor will they help you construct macros to meet your specific needs. If you have limited programming experience, you may want to consult one of the Microsoft Solution Providers. Solution Providers offer a wide range of fee-based services, including creating custom macros. For more information about Microsoft Solution Providers, call Microsoft Customer Information Service at (800) 426-9400. To use the example, do the following:
If it doesn't appear in the list, click Browse and search for Msacc8.olb, which is installed by default in the Program Files\Microsoft Office\Office folder.
REFERENCESFor more information about using Automation with Microsoft Access from another Microsoft Office program, please see the "Mastering Office 97 Development" compact disc. You can find information about this compact disc on the Microsoft Web page at the following address:
http://www.microsoft.com/mastering/NOTE: Because the Microsoft Web site is constantly updated, the site address may change without notice. If this occurs, link to the Microsoft home page at the following address:
http://www.microsoft.com/For more information about using Automation to work with other programs while in Microsoft Access 97, click the Office Assistant, type "Automation," click Search, and then click to view the topic. NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Microsoft Access Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q120802 TITLE : Office: How to Add/Remove a Single Office Program or ComponentFor more information about using Automation to work with other programs while in Microsoft Access 97, click the Index tab in Microsoft Access Help, type the following text
automation overviewand then double-click the selected text to go to the "Automation Overview" topic.
|
Additional query words: inf word8 word97 kbwordvba PgmObj 8.00 8.0 vb vbe vba OLE
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |