Results 1 to 5 of 5
  1. #1
    ck4794 is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Oct 2013
    Posts
    80

    requery bottom form after closing pop up


    so i chose to operate with a main form for a person's "profile", and to view their respective documents via subform. nothing too complicated, and not really too relevant now that i think about it. but anyways, i chose to use the pop-up method of adding a new document (read attachment). i can't for the life of me seem to figure out how to make the profile form requery after i close the upload pop up. any suggestions?

    also i work in macro builder, and query design windows. i'm not fluent at all in code, though i realize it's what actually makes the db work.

  2. #2
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Two ideas -

    First, you can make the popup modal, and in the button code/macro where the popup is created, make the next line the Requery on the form.

    Second, you can pass the name of the calling form to the popup form, and requery the parent in the popup Form's Close event.

    For me to be more specific, you'd have to post exactly how you are causing the popup form to appear.

  3. #3
    ck4794 is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Oct 2013
    Posts
    80
    i'm going to try and explain it intelligently, forgive me if i fail...
    for the record source, i'll give background info. the documents are stored in one table, and the profiles are in another, linked by the profile.id. the pop up's record source is the image table. on open event is go to new, and set value of a non visible control to profile.id (which is a non visible control on the profile form which is still open). select your file via attachment manager (which i would love to find a way to get rid of and just have a "browse" button or something, but that's another question for later), select the type of document it is (a combo box which looks up from a 3rd independent table linked to the document table), and click "upload" button, which on click is save record, close form.

    this is where i end up back at my profile form which now needs to requery to show the document i just added.

    sorry if it seems kind of jumbled.

  4. #4
    ck4794 is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Oct 2013
    Posts
    80
    i looked up what modal means. that idea seems to have done the trick. i may have to try it else where.

  5. #5
    Dal Jeanis is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2013
    Location
    Dallas TX
    Posts
    1,742
    Good job. Please mark thread solved. Top of page, under "Thread Tools".

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

Similar Threads

  1. Bottom half of form not showing?
    By christm in forum Forms
    Replies: 20
    Last Post: 03-08-2013, 11:11 AM
  2. Replies: 7
    Last Post: 06-13-2012, 06:27 PM
  3. Open form and locate it on the bottom
    By Dominaz in forum Forms
    Replies: 4
    Last Post: 11-17-2011, 08:03 PM
  4. Closing a form through VBA
    By ghostmachine in forum Forms
    Replies: 4
    Last Post: 12-13-2010, 01:57 PM
  5. can't update form-in the bottom bar of
    By ymds in forum Access
    Replies: 2
    Last Post: 07-19-2010, 06:26 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