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?
FileMaker ProDatabases

Avatar of undefined
Last Comment
Jean-Christophe GALLAND
Avatar of Am P
Am P
Flag of India image

@@ (or {{recordnumber}} ) used to renumber.
Avatar of Member_2_908359
Member_2_908359
Flag of France image

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

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Great thanks
Databases
Databases

Databases are organized collections of data, most commonly accessed through management systems including schemas, tables, queries and processes that allow users to enter and manipulate the information or utilize it in other fashions, such as with web applications or for reporting purposes.

62K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo