
28-Jul-2006, 08:37 AM
|  | Guest | | | | | | | | | | Close button on a form will not close form - error 2585 - action cannot be carried out while processing a form 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? Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/13509-close-button-form-will-not-close.html
Angus *
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh! | 
28-Jul-2006, 08:37 AM
|  | Guest | | | | | | | | | | Re: Close button on a form will not close form - error 2585 - action cannot be carried out while processing a form 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" 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 Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13509
> attempts to close the form like this: Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13509
>
> 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
>
> | 
28-Jul-2006, 08:37 AM
|  | Guest | | | | | | | | | | Re: Close button on a form will not close form - error 2585 - action cannot be carried out while processing a form 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" wrote in message
news:%23F$faNyqGHA.4996@TK2MSFTNGP04.phx.gbl... Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13509
> 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' Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=13509
>
> 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
>
> | 
Support Us! Become a Promoter! | | Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh! | (View-All)
Members who have read this thread : 0
| | There are no names to display. | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Tools | Search | | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is On | | | | » Gurbani Jukebox | Listen to Gurbani while surfing SPN! | » Active Discussions | | | | | | | ਨਾਮਾ Today 06:37 AM 2 Replies, 53 Views | | | | | | | | | | | | | | | | | | | | | | | » Books You Should Read... | | | |