I have a field that is autoNumber, automatically incremented by the database.
Each time you add a row and cancel the edit or the addition is rejected by the database, the number gets incremented again even if no row has been added.
I used to have a different set of control for input and did all the checking before i added the row to the database.(double work since i already defined the constraints in the DB)
Id much rather have the DB do the checking and return me the error...
So how can I refresh the increment?
Each time you add a row and cancel the edit or the addition is rejected by the database, the number gets incremented again even if no row has been added.
I used to have a different set of control for input and did all the checking before i added the row to the database.(double work since i already defined the constraints in the DB)
Id much rather have the DB do the checking and return me the error...
So how can I refresh the increment?
Last edited by a moderator: