ADO » Record » RecordType

Version: 2.5

RecordTypeEnum = recordobject.RecordType

Returns a RecordTypeEnum that is the type of the Record object.

The RecordType property returns a RecordTypeEnum constant that specifies the type of the Record object.

RecordType Enum Constant

Constant Value Description
adCollectionRecord 1 Type is a collection record that does contain children
adSimpleRecord 0 Type is a simple record that does not contain children
adStructDoc 2 Type is a COM structured document


If objRecord.RecordType = adCollectionRecord Then
   MsgBox "Record Contains Children", vbOK
End If

See Also: