Help

I

Igor

Hi,
DoCmd.RunCommand acCmdDeleteRecord
raises error: 2046 The command or action 'DeleteRecord' isn't available
now.
Why could it be?
Thanks
 
B

Brendan Reynolds

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
 

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

Similar Threads

Error 2046 1
DeleteRecord command failing 1
Run-time error on acCmdDeleteRecord 2
Zoom question 1
DeleteRecord 1
Delete record command not available 1
Command acCmdDeleteRecord on Subform 7
Delete a record 2

Top