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!

Delete record on AfterUpdate

Status
Not open for further replies.

finberg

Programmer
Aug 23, 2002
27
UA
I am usingAfterUpdate function.
I check the added value with a function fcheck, and if fcheck=true I want to delete the added record.
How can I delete it?
Thanks Arseniy
 
Apart from the obvious question of why it was added in the first place, the easiest is to call

DoCmd.RunCommand acCmdDeleteRecord
then
Me.Requery ' to let it reload the data, as the current record won't exist.

John

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top