Results 1 to 8 of 8
  1. #1
    mlrucci is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    202

    Pause form from opening until information in popup form complete

    Good afternoon, I am working with a navigation form. I know not a lot of people like the use of the navigation forms, but this is the best organized way to display my information. When clicking on a navigation button, I have a form that opens. One of the forms needs information from a popup form before populating. (The navigation form has multiple lists based on the popup form information). How do I pause the opening of the navigation form, allow the end user to complete the information in the popup form and then click a cmdbtn on the popup form to open the form with the necessary information in the navigation form? I want to keep the popup form open as it is needed for other vba executions. I have tried to use the onOpen cancel=vbCancel which does cancel the loading of the form, but don't know how to reload the form within the navigation form. It opens it in full form mode. I cannot open the navigation form without it looking for the information needed in the popup form and is giving the end user the the "Enter Parameter Value" window.

    Navigation Form: Forms![frmNavMain]![frmNavMain].Form![frmLogService]
    Popup Form: frmLogServicePopUp



    Currently the cmdbtn is set to reqry the designated form. Just need the loading of the form to pause until the information is inputted.

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 10 Access 2016
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,537
    Can you post a copy of the db
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  3. #3
    mlrucci is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    202
    Here is a very stripped down version


    Database1.zip

  4. #4
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,651
    Set the rowsource of the lists in the click event of the popup.
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  5. #5
    mlrucci is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    202
    unable to place the rowsource to the popup as each list has different information. unclear what you are thinking

  6. #6
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,651
    I was too lazy to copy your list rowsource queries so I saved them as Q1,Q2,Q3,Q4.

    Code:
    Private Sub cmdSubmit_Click()
        Forms!frmNavMain!frmNavMain.Form.lstMonth0.RowSource = "Q1"
        Forms!frmNavMain!frmNavMain.Form.lstMonth1.RowSource = "Q2"
        Forms!frmNavMain!frmNavMain.Form.lstMonth2.RowSource = "Q3"
        Forms!frmNavMain!frmNavMain.Form.lstMissingEntries.RowSource = "Q4"
    End Sub
    here's your example with the above code.
    Attached Files Attached Files
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  7. #7
    mlrucci is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    202
    Wow, so simple. Have spent hours thinking and playing with so many variables that I think my head has twisted off. lol Thank you very much!!!

  8. #8
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,651
    You should also have option explicit declared in each of your modules.

    good luck with your project.
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

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

Similar Threads

  1. Replies: 10
    Last Post: 06-02-2017, 08:20 AM
  2. Replies: 2
    Last Post: 11-22-2015, 07:24 PM
  3. Replies: 2
    Last Post: 05-21-2014, 06:37 PM
  4. Difference between opening a form vs. a popup form?
    By Access_Novice in forum Forms
    Replies: 8
    Last Post: 01-18-2014, 01:10 PM
  5. popup when opening a form
    By ajetrumpet in forum Forms
    Replies: 1
    Last Post: 10-08-2010, 09:33 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