B
Brad Pears
I have some code that updates a record in a table. I am using an "on error"
clause expecting that if there is no row to update, it would go through the
"on error" routine and the code there then "inserts" the correct record into
the table. However, obviously, updating a row that does not yet exist in the
table does not return any SQL errors. Should it be?? If not, is there a way
to determine if the number of rows being affected by the update is >0
without first having to do a "select" on the table to see if the row I want
to update is there? (which would be the resolution to the problem unless
there is an easier way...)
Thanks,
Brad
clause expecting that if there is no row to update, it would go through the
"on error" routine and the code there then "inserts" the correct record into
the table. However, obviously, updating a row that does not yet exist in the
table does not return any SQL errors. Should it be?? If not, is there a way
to determine if the number of rows being affected by the update is >0
without first having to do a "select" on the table to see if the row I want
to update is there? (which would be the resolution to the problem unless
there is an easier way...)
Thanks,
Brad