Link to home
Start Free TrialLog in
Avatar of Jean-Christophe GALLAND
Jean-Christophe GALLANDFlag for France

asked on

Renumber records in FileMaker

Hello. I built a database using FileMaker. In my table, each record has an automatically generated ID number (specific field): 1,2,3,4 5, etc....
When I delete a record, this field is not automatically renumbered. For example, if I delete record #3, my table will contain 1,2,4,5.
Is there a way I can automatically renumber to 1,2,3,4 and ensure that the last record ID corresponds to the total number of records?
Avatar of Am P
Am P
Flag of India image

@@ (or {{recordnumber}} ) used to renumber.
not a good idea to alter an id; if you need a field representing an order number, do it in a separate calculated field or use a variable if it is only for display. if you change the id, think that everytime a record will be deleted, all younger records will have to be renumbered; acceptable for 10k records, not for 1M, too slow. On top all related records on other tables will loose their relationship or have to be renumbered as well? not useable.
Avatar of Jean-Christophe GALLAND

ASKER

Lesouef, your remark makes sense. Now, how can I generate a field or a variable to indicate the order number please?
ASKER CERTIFIED SOLUTION
Avatar of Chris Johnston
Chris Johnston

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great thanks