Hi,
I was wondering that there was a faster way to do what I want to do.
I have a database with records, and each record has a field with the item-number.
Each time the client ad an item, I set the index-order to that field, do to bottom, and take for new record the itemnumber + 1.
Sometimes the customer delete a record, so a item-number is available again.
To search for the first free itemnumber, I create a for-next loop from 1 to the last number and seek vor that number. If it's not found, I know the fisst availabe number. If this is a large database on a network , it can take a while to find it.
Is there a quicker method to find the first availabe number?
Thanks,
Marc