G
Guest
Hi
I have a table that has an ID field as an autonumber
People create new records through a form, but very frequently they end up cancelling the record (deleting it). The problem is that if they go and make a new record again it will be a number higher - with the amount of deletions etc, this has meant eg the IDs go as follows 1,2,3,4,6,7,11,28,33,34,35,55,70 et
Is there a way that when they do delete a record I can include with the code a preocedure to change the field data type from autonumber to number and then back to autonumber - I have noticed that if I do this manually it seems to reset the autonumber in effect. Will this work
I have thought about having a temporary form which is then submitted to the main table... but the idea seems a bit overwhelming to me
What do you think? Any examples on code if changing the data type will work
Mikey
I have a table that has an ID field as an autonumber
People create new records through a form, but very frequently they end up cancelling the record (deleting it). The problem is that if they go and make a new record again it will be a number higher - with the amount of deletions etc, this has meant eg the IDs go as follows 1,2,3,4,6,7,11,28,33,34,35,55,70 et
Is there a way that when they do delete a record I can include with the code a preocedure to change the field data type from autonumber to number and then back to autonumber - I have noticed that if I do this manually it seems to reset the autonumber in effect. Will this work
I have thought about having a temporary form which is then submitted to the main table... but the idea seems a bit overwhelming to me
What do you think? Any examples on code if changing the data type will work
Mikey