Insert

ACCPAC Common Controls

AccpacView.Insert

Creates a new record in the database from the contents of the current logical record.

Sub Insert()

Remarks

The key must not currently exist in the database. The integrity of the record is automatically checked, and, if the integrity check fails, the record is not added. Inserting a record in the database causes the key being used to be reset to the primary key, positioned on the record inserted. If the defined key is not the primary one, the position must be re-established, so that Fetch will operate properly.