Results 1 to 4 of 4
  1. #1
    S2000magician is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jul 2019
    Posts
    31

    Pausing code on one form until another form is closed?

    This is a follow-on to my question about passing info from one form to another form that it is opening.

    In form 1 I'm looping through a number of portfolios. For each portfolio in the loop, I want to open a new form (form 2) and let the user fiddle with that portfolio. When the user is done fiddling and closes the form 2, only then do I want the code for form 1 to continue with the next portfolio in the loop.

    So the question is: how do I tell the loop to pause after opening the new form and wait until that form is closed?



    As always, thanks a million! You guys have been a tremendous help to me.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    If you use the acDialog argument when opening the second form, code will pause until the second form is either closed or hidden.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    S2000magician is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Jul 2019
    Posts
    31
    Quote Originally Posted by pbaldy View Post
    If you use the acDialog argument when opening the second form, code will pause until the second form is either closed or hidden.
    Perfect!

    Thank you so much!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. acDialog not pausing code
    By mredmond13 in forum Programming
    Replies: 8
    Last Post: 07-08-2018, 01:31 PM
  2. Replies: 23
    Last Post: 07-05-2014, 08:13 AM
  3. Replies: 1
    Last Post: 03-28-2013, 07:54 AM
  4. Replies: 1
    Last Post: 03-30-2012, 11:57 PM
  5. Replies: 4
    Last Post: 08-17-2011, 05:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums