DeleteRecord command failing

G

Guest

I am executing:

DoCmd.RunCommand acCmdDeleteRecord

and getting message:

"The command or action DeleteRecord isn't available now"

What would cause this?
Thanks.
 
O

OldPro

I am executing:

DoCmd.RunCommand acCmdDeleteRecord

and getting message:

"The command or action DeleteRecord isn't available now"

What would cause this?
Thanks.

Usually the record is unsaved, or the code is being called from a
popup form. A popup form can't access the menu.
 

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
Help 1
DeleteRecord 1
Run-time error on acCmdDeleteRecord 2
Delete a record 2
Command acCmdDeleteRecord on Subform 7
Prevent BeforeUpdate code on Delete - Me.Undo not working 2
Acess97 Delete Record 2

Top