Auto-generate ID number and increment

Discussions about CSEntry
Post Reply
realturay
Posts: 8
Joined: July 25th, 2023, 12:39 am

Auto-generate ID number and increment

Post by realturay »

I am working on a project in CSPRO but want my Data Entry_ID to be auto-generated and increment by 1 upon any new entry How to achieve this team?
Gregory Martin
Posts: 1796
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Auto-generate ID number and increment

Post by Gregory Martin »

Use the Auto Increment feature: https://www.csprousers.org/help/CSPro/c ... rties.html
Check this box to make a field auto increment. Auto increment fields are ID fields that receive an automatic value based on a calculation using the other cases in a data file. For the first case in the data file, the ID field is set to 1. For subsequent cases, the field takes the value of the highest value in the data file plus 1. Auto increment fields are similar to sequential fields except that they work on ID fields across multiple cases, whereas sequential fields work across a repeating group in a single case.
realturay
Posts: 8
Joined: July 25th, 2023, 12:39 am

Re: Auto-generate ID number and increment

Post by realturay »

Many thanks, Gregery. This was helpful
Post Reply