Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

This is surely possible...

We have a contacts database with each company having a company id which is a serial number.

Obviously when a record is deleted, there is a gap in the sequence of serial numbers like 0098, 0099, 0100, [deleted record], 0102, 0103... etc

Is there a way to return a list of the serial numbers that aren't present?

Posted

This topic has been discussed in the past many times (a search for "Serial", "Recycle Serial" or "Recycle Numbers", etc. should provide some heft reading). In short there are dangers in doing this and it should be avoided. After all, they are only numbers. However, to reuse one could come back to haut you in things like relationships.

HTH

Lee

smile.gif

Posted

I guess it could cause problems, but the database in question has no relationships.

I think I've found a way to do this by looping through all the records so I'll give that a go first.

Thanks

Posted

The best bet is to prevent users from really deleting the records; instead, mark the record for recycling. The New Record process should first search for records to be recycled and return one of these, and only make a new record if no recycled records are found.

Posted

Good idea!

Yeah that's what I'd like to do, so I'm going to get a list of the ids that aren't used, then create blank records for them and just recycle them as you say.

Thanks for your help.

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