ExpandCollapse

Guest

It's OK - I have worked it out. I put code in On Enter. If I put in
OnClick event it works.

Angus

"Angus Comber" <nospam@gmail.com> wrote in message
news:#F$faNyqGHA.4996@TK2MSFTNGP04.phx.gbl...
> 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
>
>

ExpandCollapse

Guest

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" <nospam@gmail.com> wrote in message
news:%23F$faNyqGHA.4996@TK2MSFTNGP04.phx.gbl...
> 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
>
>

About Us

Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Like us on Facebook

Support SPN

The management works very hard to make sure the community is running the best software, best designs, and all the other bells and whistles. We'd really appreciate your support!