Trap dup key on rs.update, change key and re-try update ?

  • Thread starter somanybugssolittletimetofixthem
  • Start date
S

somanybugssolittletimetofixthem

I have some code that creates a key based on user first and last name and location. In the unlikely event this leads to a dup key my rs.update fails. Is it possible to trap this with 'on error' so I can change the key and retry the rs.update ?
Example code would be much appreciated.

Thanks for any help.
 
A

Al Borges

Hi somany:

Go to the thread "Delete a Record from a Table" which began on 6/8/2004...
in my note I handle error trapping in such situations. Let me know if you
can't find it.

Regards,
Al

somanybugssolittletimetofixthem said:
I have some code that creates a key based on user first and last name and
location. In the unlikely event this leads to a dup key my rs.update fails.
Is it possible to trap this with 'on error' so I can change the key and
retry the rs.update ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top