Thank you rcm
What I am trying is duplicating a record from a form and add to table. The record has a unique number. So when I duplicate I want to give the new record a unique number after checking in the table.
So far I have done like below
But my problem now is after reaching the maximum number the loop continues. how can I exit here and then still duplicate the record and show the record without the unique number, allow the user to enter a number and save. I am using 1 to 10 for test purpose only. But in real case it will be 25000 to 99999
Bookmarks