form - close\refresh

S

SIN

hi,
when i have button that delete record:
if i add refresh - i get error message.
if i add close - i ger question button

can i refresh form or i must close first?
if i must close can i can do it without question button?
thanks.
 
W

Wayne-I-M

Private Sub ButtonName_Click()
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Me.Refresh
End Sub
 
Top