How to suppress the delete confirm box and go on?

G

G Lam

Hi, I use the following codes to delete a record, but every time, Access
2000 pops up a delete confirmation box and asks for confirmation. How can I
suppress this box and keep on going without the user clicking a button?
Thank you
Gary

(Afterupdate event VBA codes)
If Bcode = OldOBC Then
Pieces = Pieces + 1
DoCmd.GoToRecord , , acNext
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Endif
 
Top