Help

  • Thread starter Thread starter Igor
  • Start date Start date
I

Igor

Hi,
DoCmd.RunCommand acCmdDeleteRecord
raises error: 2046 The command or action 'DeleteRecord' isn't available
now.
Why could it be?
Thanks
 
You could be on the new record. Try something like ...

If Me.Dirty Then
Me.Undo
End If
If Not Me.NewRecord Then
DoCmd.RunCommand acCmdDeleteRecord
End If
 
Back
Top