
03-08-2001, 10:09 AM
|
|
Verbose Coder
Retired Moderator * Guru *
|
|
Join Date: Dec 1999
Location: Phoenix, Arizona
Posts: 3,011
|
|
Re: UpdateDuplicate
|
One way to handle this without using error trapping would be to run a query against the table using the intended key value before the attempted add. If you get a record back from the select you'd know that a record with that key already exists and could respond as you like. If you don't get a record back you know that you can use that key and go ahead and add the new record.
Paul
|
|