D.9. Record Object

The Record object represents a row from a Recordset or any object returned by a data provider.

D.9.1. Properties of the Record Object

The following table lists the properties associated with a Record object.

PropertyData TypeDescription
ActiveConnectionVariantThe Connection object used to retrieve the data for the Record object
FieldsCollection of Field objectsPointer to the collection of Field objects that contain data
ModeConnectModeEnumSpecifies the permissions for modifying the Record object
ParentURLStringThe parent URL for the Record object
RecordTypeRecordTypeEnumSpecifies the type of the Record object
SourceVariantSpecifies the source of the data contained in the Record object
StateObjectStateEnumIndicates the state of the Record object

D.9.2. Methods of the Record object

The Record object has seven methods, listed in the following table.

MethodDescription
CancelCancels an asynchronous action on the Record object
CloseCloses an open Record object
CopyRecordCopies the Record object to another location
DeleteRecordDeletes the Record
GetChildrenRetrieves the child data associated with the Record object
MoveRecordMoves the Record to another location
OpenOpens an existing Record or creates a new Record

D.9.3. Collections of the Record Object

CollectionDescription
PropertiesContains all the property objects for the current command object

Get Access 2003 VBA Programmer's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.