What Is New and Obsolete with DAO in MS Access 95

ID: Q140128

The information in this article applies to:

SUMMARY

Advanced: Requires expert coding, interoperability, and multiuser skills

The Microsoft Jet database engine version 3.0 has many functional improvements over earlier versions. This article discusses the enhancements made to data access objects (DAO), the programmatic interface provided by the Microsoft Jet database engine for accessing and manipulating data in databases.

MORE INFORMATION

New Features

The following is a list of new methods and properties for individual data access objects.

DBEngine Object:

Workspace Object: Database Object: Recordset Object: TableDef Object: Container Object: Document Object: All Objects:

Obsolete Features

The following is a list of data access object methods, properties, objects, and functions that have been replaced in the Microsoft Jet database engine version 3.0.

Obsolete feature                      Replacement feature

All CreateDynaset methods             OpenRecordset method

All CreateSnapshot methods            OpenRecordset method

All ListFields methods                Fields collection

All ListIndexes methods               Indexes collection

CompactDatabase statement             DBEngine.CompactDatabase method

CreateDatabase statement              DBEngine.CreateDatabase method

DBEngine.FreeLocks method             DBEngine.Idle method

DBEngine.SetDefaultWorkspace method   DBEngine.DefaultUser and
                                        DBEngine.Password properties

DBEngine.SetDataAccessOption method   DBEngine.IniPath property

Database.BeginTrans method            Workspace.BeginTrans method

Database.CommitTrans method           Workspace.CommitTrans method

Database.Rollback method              Workspace.Rollback method

Database.DeleteQuerydef method        Delete method

Database.ExecuteSQL method            Execute method

Database.ListTables method            Tabledefs collection

Database.OpenQuerydef method          Querydefs collection

Database.OpenTable method             OpenRecordset method

Index.Fields property                 Index.Fields collection

OpenDatabase statement                DBEngine.OpenDatabase method

Querydef.ListParameters method        Parameters collection

Snapshot object                       Recordset object

Dynaset object                        Recordset object

Table object                          Recordset object

NOTE: These obsolete methods, properties, objects, and functions are still available in applications that use the Microsoft Jet database engine version 3.0, as long as you have a reference to the Microsoft DAO 2.5/3.0 Compatibility Library.

REFERENCES

For more information about new features in the Microsoft Jet database engine version 3.0, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q137039
   TITLE     : New Features in Microsoft Jet Version 3.0

Keywords          : kbprg kbdta MdlDao 
Version           : WINDOWS:7.0,97
Platform          : WINDOWS
Hardware          : x86
Issue type        : kbhowto

Last Reviewed: January 20, 1999