INFO: Data Access Objects Have Properties Based on Database TypeLast reviewed: December 12, 1997Article ID: Q129732 |
The information in this article applies to:
SUMMARYCertain Visual Basic Data Access Objects (DAO), such as the Field, Recordset, and TableDef objects, each have a Properties collection that uniquely characterizes an instance of the object. You can use the default (built-in) properties in the collection or you can create user-defined properties by using the CreateProperty method. The default properties available in the collection vary depending on the database type. A set of extended properties, referred to as application- defined properties, are available with Microsoft Access databases.
MORE INFORMATIONThe built-in properties are available in the Properties collection for all databases including Microsoft Access, Btrieve, dBASE, Microsoft FoxPro, Paradox, and ODBC client-server databases such as SQL Server. For example, the following built-in properties are available in the Properties collection of the TableDef object (using DAO version 3.0):
Name SourceTableName
Updatable RecordCount
DateCreated ValidationRule
LastUpdated ValidationText
Connect ConflictTable
Attributes
Additional application-defined properties are available for Microsoft
Access databases. For a complete list of built-in and application-defined
properties, please see the following topics in the Microsoft Access Help
menu:
Field Object, Fields Collection - Summary
RecordSet Object, Recordsets Collection - Summary
TableDef Object, TableDefs Collection - Summary
The application-defined properties will not be a part of the DAO's
Properties collection until the values are changed from their default
values. You can change an application-defined property default value by
using Visual Basic code or by using the Microsoft Access design
environment. In Visual Basic code, use the CreateProperty method just as
you would to create user-defined properties.
Steps to Display the Properties Collection
Keywords : APrgDataAcc APrgDataIISAM APrgDataODBC VB4ALL VB4WIN vb5all Version : WINDOWS:4.0,5.0 Platform : WINDOWS Issue type : kbinfo |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |