TrkRecords (object)

ITrkRecords Interface
TrkRecords is a collection of TrkRecord objects.

Do not instantiate this object directly. When the TrkTable.ReadDB method is called to request data from the database, the ReadDB method creates and initializes this object with any data returned by the database. If no records are returned by the database matching the condition specified in the TrkTable.ReadDB parameter, TrkRecords object is not created.


Dim oTADBRoot As Object
Dim oTable As Object
Dim oTrkRecord As Object
Dim idx As Long

Set oTADBRoot = CreateObject("TADB.TADBRoot")

If oTADBRoot Is Nothing Then
   MsgBox "Root Object is not created"
End If

oTADBRoot.Load "TRK7", ""

Set oTable = oTADBRoot.FindTable("VEHICLE ORDER", "BLENDS")
If Not oTable is Nothing
     oTrkTable.ReadDB "Item3"
     For Each oTrkRecord In oTrkTable.TrkRecords
        MsgBox "Record ID: " & oTrkRecord.ID
   'Table does not exist for this Type or Group...
End If

Methods: Add , Count , Item , Remove , RemoveFromCollection , Save