DeleteRecord command failing

M

mscertified

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.
 
Top