Help and Support

XL97: Reference to DAO 3.0 Changes to DAO 3.5 When File Opened

Article ID:158066
Last Review:October 11, 2006
Revision:1.2
This article was previously published under Q158066

SYMPTOMS

In Microsoft Excel 97, when you open a workbook that references the Microsoft DAO 3.0 Object Library, you may find that the reference changes such that the workbook now references the Microsoft DAO 3.5 Object Library.

Back to the top

CAUSE

In Microsoft Excel 97 Visual Basic for Applications, the reference changes to DAO 3.5 if DAO 3.0 is not installed on your computer. However, if DAO 3.0 is installed, the project continues to reference DAO 3.0.

This behavior is by design of Microsoft Excel.

Back to the top

MORE INFORMATION

When you open a workbook that references DAO 3.0 in Microsoft Excel 97, the reference changes to DAO 3.5 if DAO 3.0 is not installed on your computer. The References dialog box indicates that DAO 3.5 is referenced, however, DAO 3.0 is still the underlying reference. Therefore, if you save the workbook and open it on a computer with only DAO 3.0, the reference to DAO 3.0 is maintained.

If you would like your project to permanently reference DAO 3.5, do the following:

1.In the Visual Basic Editor, click References on the Tools menu.
2.Clear the "Microsoft DAO 3.5 Object Library" check box.
3.Select the "Microsoft DAO 3.5 Object Library" check box again and click OK.
NOTE: If you permanently change the reference to DAO 3.5, your macro will produce an error when you run it on a computer that only has DAO 3.0 installed.

Back to the top


APPLIES TO
Microsoft Excel 97 Standard Edition

Back to the top

Keywords: 
kbprogramming kbualink97 KB158066

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.