Jump to content

Sequential Number generator


jagoldst

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

Recommended Posts

If you create a self-join relationship with the database, then

Count(self_relationship::databasefieldname)

And assign your serial number to that, it would work but there are some pitfalls like what if a record in the middle is deleted. You may want to use something like

Max(self_relationship::databasefieldname) +1

Link to comment
Share on other sites

Create a one record database. Add a number field: "Record No".

From your database control the creation of records with passwords, and via a scripted button. Then every time you create a new record. Set the field in this file via a relationship. To itself plus one. Then set the field in the local file to the new number. With a little work this system works fine even in multiuser environments. You need to add some additional scripts steps to prevent duplicates but it is possible.

Link to comment
Share on other sites

This topic is 8515 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.