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?
Jean-Christophe GALLANDKorea R&D DirectorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Amitkumar PSr. ConsultantCommented:
@@ (or {{recordnumber}} ) used to renumber.
lesouefCommented:
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.
Jean-Christophe GALLANDKorea R&D DirectorAuthor Commented:
Lesouef, your remark makes sense. Now, how can I generate a field or a variable to indicate the order number please?
Chris JohnstonCommented:
You can use summary fields for this.

  fmSumry.jpgTimeAutoBak.fmp12

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jean-Christophe GALLANDKorea R&D DirectorAuthor Commented:
Great thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
FileMaker Pro

From novice to tech pro — start learning today.