I use MS Office 2007.
I make table and along every line i make delete button.
I put code for button:
Private Sub Command4_Click()
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.SetWarnings False
End Sub
but when I click on delete button on empty record I recive message:
Run-time error '2046'
The command or action 'deleteRecord' isn't available now.
How can I stop this error because I dont want access message" are you sure that you want to delete, bla, bla'
Any idea?
Thank you in advance
I make table and along every line i make delete button.
I put code for button:
Private Sub Command4_Click()
DoCmd.RunCommand acCmdDeleteRecord
DoCmd.SetWarnings False
End Sub
but when I click on delete button on empty record I recive message:
Run-time error '2046'
The command or action 'deleteRecord' isn't available now.
How can I stop this error because I dont want access message" are you sure that you want to delete, bla, bla'
Any idea?
Thank you in advance