I have a bunch of code to update Excel, send email, update records etc ..
At the end I give the command
To close the form and open the main menu.Code:DoCmd.Close ObjectType:=acForm, ObjectName:="Build1F" DoCmd.OpenForm "MainMenuF"
I am getting an error "This action can't be carried out while processing a form or report event."
There are no other forms open and I am not calling up more than the subroutine it is running in.
How do I get around this?
(It is working in other forms)