form - close\refresh

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Private Sub ButtonName_Click()
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Me.Refresh
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top