Escaping from Form - Document Command not available

When closing my main form in my db (with two embedded views) I am getting the error “Document Command not available”.

If the main form is EDIT mode, the error does not occur. If it is NOT in EDIT, the error does occur.

The same error occurs if I use a Close Window command.

Any help greatly appreciated… saw some other posts on this error, but nothing seemed to be same as my problem.