TrkTable.ApplyUpdate (method)

ApplyUpdate
Syntax: object.ApplyUpdate srcItemID, destItemID
Parameters:
srcItemID As String -
The old item ID
destItemID As String -
The new item ID
Description:
Changes the table so that the records in this table that refer to srcItemID will now refer to destItemID.

Example:

Dim oTADBRoot As Object
Dim oTrkTable As Object
Set oTADBRoot = CreateObject("TADB.TADBRoot")

oTADBRoot.Load PointGet("$PROJECT"), "")

Set oTrkTable = oTADBRoot.FindTable("VEHICLE ORDER", "Parts")
oTrkTable.ApplyUpdate srcItemID, destItemID
oTADBRoot.TrkItems.Remove srcItemID