G
Guest
I have a piece of code that queries an existing table to retrieve the last
number used, adds one to that number to generate the next number and inserts
it as the key value for a new record. I store this number and use it
throughtout the rest of the transactions on the form. Obviously the flaw in
that procedure is that someone else could grab the same number and use it
before the record saves, in which case I should get an insert error. I would
like to be able to catch that error and go back to the start. How do I do
that?
Thanks
number used, adds one to that number to generate the next number and inserts
it as the key value for a new record. I store this number and use it
throughtout the rest of the transactions on the form. Obviously the flaw in
that procedure is that someone else could grab the same number and use it
before the record saves, in which case I should get an insert error. I would
like to be able to catch that error and go back to the start. How do I do
that?
Thanks