Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

After I try to delete a record, absoluteposition gives error 1

Status
Not open for further replies.

sergiog

Programmer
Feb 17, 2003
24
MT
Hi I am trying to delete a record with rst.delete but Access is not allowing me because of referential integrity. I trap this and I exit the sub.

So far so good.

bu when I try to do rst.absoluteposition = 5 to move the recordset pointer I get an error saying Row handle referred to a deleted row or a row marked for deletion.

any ideas pls ?
thanks
sergio.
 
When you capture the error, try calling the rsADO.CancelUpdate (or CancelBatch depending on the CursorLocation) method.
 
thanks CClint...it worked with cancelupdate.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top