The information in this article applies to:
SUMMARYAdvanced: Requires expert coding, interoperability, and multiuser skills.
MORE INFORMATIONIMPORTANT: This article contains a sample procedure that makes changes to
the Windows 95 registry. Before you modify the registry, make sure you
understand how to restore it if a problem occurs. For information about how
to do this, view the "Restoring the Registry" Help topic in Regedit.exe or
the "Restoring a Registry Key" Help topic in Regedt32.exe.
Method 1: Manual Re-Registration
Method 2: Changing File Associations in CodeMicrosoft provides programming examples 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. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Solution Provider or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Solution Providers, please see the following page on the World Wide Web:http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.asp MSACCREG.DLL is a file that is installed on your computer by Microsoft Access 7.0. If you accepted the default folders during installation, the file is located in the folder C:\MSOffice\Access\MSACCREG.DLL. When you use Regsvr32.exe to register this .dll file, all files with Microsoft Access file name extensions are associated with the Microsoft Access 7.0 executable file. If Regsvr32.exe does not already exist on your hard drive, please see the following article in the Microsoft Knowledge Base for information about obtaining a copy of the program: Q161983 ACC: Regsv32a.exe Available in Download CenterYou can use a Visual Basic for Applications procedure to call Regsvr32.exe and register the MSACCREG.DLL file every time you open the Microsoft Access 97 run-time application. This forces the Microsoft Access file name extensions to be associated in the Windows registry with the Microsoft Access 7.0 executable file. The following sample procedure is designed to run in the Open event of a startup form. Please note that you may need to insert a loop containing a DoEvents statement after the line of code that contains the Sendkeys statement; the purpose of this loop is to delay execution of the Sendkeys statement. Whether or not you need to implement such a loop depends on the speed of your computer. Paste or type the following procedure into the Open event of the startup form in your Microsoft Access 97 run-time application. NOTE: This code generates an error if Microsoft Access 7.0 is not installed, or if the file MSACCREG.DLL is not located in the specified folder.
REFERENCESFor more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base: Q163435 VBA: Programming Resources for Visual Basic for Applications Additional query words: kbmacro vba run time runtime
Keywords : kbdta kbdtacode OdeGen |
Last Reviewed: November 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |