ACC95: Visual C++ 4.1/4.2 Cause Error Messages in MS Access 95

ID: Q162746


The information in this article applies to:


SYMPTOMS

Moderate: Requires basic macro, coding, and interoperability skills.

When you install the Data Access Objects (DAO) components of Visual C++ version 4.1 or 4.2, and then you run the Setup program for Microsoft Access 7.0, you may receive one of the following error messages.

When you try to view, create, or execute Visual Basic code in a form's class module:


   This program has performed an invalid operation and will be shut down.
   MSACCESS caused an invalid page fault in module MSACCESS.EXE 

When you try to use a Wizard:

   This feature isn't installed.

   -or-

   Microsoft Access can't find the wizard, or there is a syntax error in
   the Declarations section of a Visual Basic module. 


CAUSE

This behavior occurs because the Dao3032.dll file is not properly registered when Setup installs Visual C++. When you run Setup for Microsoft Access, the Dao3032.dll file already exists on your hard drive, and Setup does not reregister the file.


RESOLUTION

Manually register the Dao3032.dll file using the Microsoft Register Server program, Regsvr32.exe. Regsvr32.exe is set up in your Windows System folder when you install Microsoft Internet Explorer version 3.01 or later, or you can download a free copy of Regsvr32.exe from Microsoft's Software Library. For more information about obtaining Regsvr32.exe, please see the following article in the Microsoft Knowledge Base:

Q161983 ACC97: Regsvr32.exe Available on MSL

Follow these steps to register the Dao3032.dll file:

  1. In Microsoft Windows 95 or Microsoft Windows NT version 4.0, click Start on the Taskbar, and then click Run.

    In Microsoft Windows NT version 3.51, start Program Manager or File Manager, and then on the File menu, click Run.


  2. Type a command line with the full path and file name to both Regsvr32.exe and Dao3032.dll, and then press ENTER. In the following sample command line, the underscore (_) at the end of the line is a line continuation character. When you use this command, remove the underscore and type the entire command on a single line:
    
          C:\Windows\System\Regsvr32 "C:\Program Files\Common Files\Microsoft _
             Shared\DAO\DAO3032.DLL" 

    Your path to Regsvr32.exe and Dao3032.dll may be different. Dao3032.dll is installed by default in C:\Program Files\Common Files\Microsoft Shared\DAO in Microsoft Windows 95, or in C:\Winnt\Msapps\DAO in Microsoft Windows NT.

    NOTE: An alternative method of registering DLLs is to use Windows Explorer to find the DLL; then, double-click it, in the Open With Box select Regsvr32.exe, and click OK. This creates a permanent association of all DLLs with Regsvr32.exe. You can easily register other unregistered DLLs by double-clicking them.


NOTE: If you receive an error message that Regsvr32 was unable to load the dynamic-link library, you must remove and then reinstall Microsoft Access 7.0 following these steps:
  1. Start the Setup program for Microsoft Access.


  2. In the Installation Maintenance dialog box, click Remove All. Confirm that you want to remove all files.


  3. Remove the DAO folder from your computer. The DAO folder is usually found in C:\Program Files\Common Files\Microsoft Shared or C:\Winnt\Msapps.


  4. Run the Setup program for Microsoft Access, and reinstall the program.


Additional query words: vc


Keywords          : kberrmsg kbsetup StpReg 
Version           : 7.0
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: April 22, 1999