PC Review


Reply
Thread Tools Rate Thread

Close button on a form will not close form - error 2585 - action cannot be carried out while processing a form

 
 
Angus Comber
Guest
Posts: n/a
 
      19th Jul 2006
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


 
Reply With Quote
 
 
 
 
Angus Comber
Guest
Posts: n/a
 
      19th Jul 2006
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" <(E-Mail Removed)> wrote in message
news:#F$(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
>
>



 
Reply With Quote
 
ChrisM
Guest
Posts: n/a
 
      19th Jul 2006
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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run-time Error 2585: Unable to Close Form Bre-x Microsoft Access Getting Started 2 17th May 2010 06:29 PM
err 2585 - this action can't be carried out while processing a form or report event Jim Franklin Microsoft Access Form Coding 1 25th Sep 2008 02:23 PM
Error 2585 trying to close form Ken Warthen Microsoft Access Forms 2 3rd Dec 2007 01:23 PM
Closing a form error 2585 This action cannot be carried out while processing a form or report event SDLittle13@gmail.com Microsoft Access Form Coding 4 11th Mar 2007 05:58 PM
Error 2585 This Action cannot be carried out while processing a form or report David C. Widener Microsoft Access 1 30th Sep 2004 07:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:36 PM.