PC Review


Reply
Thread Tools Rate Thread

how do I keep a form open but only process code after the form after a certain button on the form is clicked?

 
 
Keith G Hicks
Guest
Posts: n/a
 
      3rd Dec 2003
Here's my problem:

Docmd.OpenForm "frmXX",,,,,acDialog, sSomeArgs
.. . . other code follows the form (this code is also used by other forms and
cannot be placed inside the form frmXX)

But I need the form frmXX to stay open after the user makes his selection so
I can't use acDialog. But I have to process a bunch of code AFTER the user
is done with the form (again, withoug closing frmXX).

I tried putting a sleep loop after the form is opened, but of course that
really botched things up.

Any simple suggestions? (other than completely rearranging the sequence of
the code).

Thanks,

Keith


 
Reply With Quote
 
 
 
 
Rick Brandt
Guest
Posts: n/a
 
      3rd Dec 2003
"Keith G Hicks" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Here's my problem:
>
> Docmd.OpenForm "frmXX",,,,,acDialog, sSomeArgs
> . . . other code follows the form (this code is also used by other forms

and
> cannot be placed inside the form frmXX)
>
> But I need the form frmXX to stay open after the user makes his selection

so
> I can't use acDialog. But I have to process a bunch of code AFTER the

user
> is done with the form (again, withoug closing frmXX).
>
> I tried putting a sleep loop after the form is opened, but of course

that
> really botched things up.
>
> Any simple suggestions? (other than completely rearranging the sequence

of
> the code).


Hide the form instead of closing it. That also causes your calling code to
resume. Since the form is still open you can still refer to it in your
code.


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


 
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
Command Button>Form Operation> Open Form...also need find function =?Utf-8?B?YTQyMHA=?= Microsoft Access 1 5th Aug 2007 05:35 AM
Form/Subform/Command Button to Open Form - Type Mismatch Error =?Utf-8?B?U2hhcm9u?= Microsoft Access Form Coding 2 12th Jul 2007 10:02 PM
Open query from button on form and apply current form filter to it ollyculverhouse@gmail.com Microsoft Access Queries 0 27th Sep 2006 12:33 PM
save current form and open another form using a single command button? moe leaer via AccessMonster.com Microsoft Access Forms 3 26th May 2005 04:44 PM
How can my newly opened form know which button was clicked to open it?? tlyczko Microsoft Access Form Coding 2 7th Feb 2005 12:04 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:19 AM.