That should work. It does for me on a simple form I just made. Is anything
else going on at this point? Is there any other events that might get fired
at the same time?
Cheers,
Chris.
"Angus Comber" <(E-Mail Removed)> wrote in message
news:%23F$(E-Mail Removed)...
> Hello
>
> I have a Save button on a form which does some data processing and then
> attempts to close the form like this:
>
> DoCmd.Close acForm, Me.Name, acSaveNo
>
> But when this line is invoked get error:
>
> Run-time error '2585'
>
> This action can't be carried out while processing a form or report event.
>
> How do I close my form when I have finished my processing tasks?
>
> Angus
>
>
|