Catching error on insert statement
- From: "torch_music" <torchmusic@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 12 Apr 2005 01:50:02 -0700
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
.
- Follow-Ups:
- Re: Catching error on insert statement
- From: Nikos Yannacopoulos
- Re: Catching error on insert statement
- Prev by Date: Re: How do i convert an DOS isam Daconti database to access?
- Next by Date: Re: Catching error on insert statement
- Previous by thread: Importing tables from .cgi web pages
- Next by thread: Re: Catching error on insert statement
- Index(es):
Relevant Pages
|