Process new cost inserts in one batch without lookups. This will create individual costs without attention to duplicates.
Process updates to costs in another batch while using the cost id (created when the costs were added) as a lookup key.
Note: The costid must be known to update the cost record. The costid is an integer value in the arg_costdet table of the mdb.
To extract the costid from the database.