Results 1 to 5 of 5
  1. #1
    mcahal is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2012
    Location
    East Texas
    Posts
    16

    New record not immediately available to other forms


    I have an equipment database with a "main menu" page. There is a button to add vendor. When this button is activated and vendor name is inserted/saved/closed, the newly created vendor isn't immediately available in another form. I have to close out of the database and open it back up before it's visible. What can I do to make the new record immediately available to other forms?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    no, you only have to refresh the screen.
    the underlying query on the form needs refreshed. put a button on whatever form
    on click()
    me.requery

  3. #3
    IrogSinta is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Jun 2015
    Posts
    103
    I'm assuming this other form is already open, that's why it's not immediately available. If you close and open that other form, do you see the new vendor? If that's the case, then the code that you need to add to the Add Vendor button is the following:
    Forms!NameOfOtherForm.Requery

    Now if instead it's not available on a control (i.e. combo box, list box) on the other form, then you need to require that particular control. So your code instead would be the following:
    Forms!NameOfOtherForm!NameOfControl.Requery

    Ron

  4. #4
    mcahal is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2012
    Location
    East Texas
    Posts
    16
    Thanks both so much! I'm going to try both.

  5. #5
    mcahal is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2012
    Location
    East Texas
    Posts
    16
    I ended up just adding the requery command to my "save and close" button. Thank you again!!

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

Similar Threads

  1. Please help immediately
    By jj1 in forum Access
    Replies: 2
    Last Post: 06-03-2014, 01:47 PM
  2. Forms do not refresh immediately
    By jlgray0127 in forum Forms
    Replies: 1
    Last Post: 03-26-2014, 02:22 PM
  3. Replies: 6
    Last Post: 01-29-2014, 02:03 PM
  4. Using forms to immediately edit/update a table
    By TKTheKid in forum Reports
    Replies: 18
    Last Post: 11-19-2012, 11:58 PM
  5. Immediately update table with form?
    By Rosier75 in forum Forms
    Replies: 6
    Last Post: 06-08-2012, 09:11 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