Jump to content

Possible to "Auto Enter Previous + 1"?


This topic is 8423 days old. Please don't post here. Open a new topic instead.

Recommended Posts

When a new record is created: Is it possible to make the field auto enter the previous value of that field plus one? IE: If the last value in the field was 12, then the auto-entered value on the new record in that field is 13. Serial won't work, because I frequently must reset the value of the field to 1. Thanks

Link to comment
Share on other sites

Field:

iOne: "1" (Calculation, Result Number, Stored)

Relationship:

Related (Self Relation iOne = iOne)

Field:

Record_No (Number, Stored)

Field:

Next_No: "MAX(RELATED::FIELD)+1" (Calculation, Result Number)

I would recommend using a script to set the number in the Record_No field instead of auto enter, this way you can control when to increment the number, before or after a bunch of other script steps.

Link to comment
Share on other sites

This topic is 8423 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.