Old File with no AutoNumbering. Use a run once stand alone process to Put the autonumber in the field.
New App with AutoNumber on.
If using the Old File. Create a new record.
If there is no auto numbers in place, this should start autonumbering from 1 onwards. Edit in Topscan, and change the AutoNumber 1 to the number you want it to start from, which should be after the Old File missing autonumber range. Lets say for examples sake its 12345. The next record auto numbered (2nd auto numbered record) should be 12346 and so on. You can then run your stand alone process, in your own time.
If using the Old File. And the Old File autonumbers have been updated by the stand alone process, then the next record you add will follow on from the last one updated by the autonumber, like you would expect.
Here in the UK, Invoice numbers do NOT have to follow on sequentially.
The taxman uses this sequential number to spot tax fraud.
Likewise competitors buying from you can see how many invoices you have got through between their last two orders/invoices.
If you want privacy from this business intelligence, you can use GUID’s as an invoice number, A random but unique alphanumeric string or run an invoicing number that takes an account prefix and runs that accounts invoice numbers sequentially that way. eg SV for SoftVelocity and then autonumber like so SV0001, SV0002 and so on.
Again Tax man cant work out if you are engaged in tax fraud, which then exposes the charade of privacy with the banks, and there is no privacy with crypto! FYI.
But thats if you want privacy for your autonumbering…
Your TPS/SQL file key would be Primary or Unique Key name, AccountPrefix field, AutoNumber field. A two element key.
The way the ABC file manager class is written, is it Autonumbers on the first field in the Key that has not been primed. Most people only use one field in a key, but provided you prime the AccountPrefix field, the ABC Filemanager class will autonumber the AutoNumber field.