Results 1 to 2 of 2
  1. #1
    robrich22's Avatar
    robrich22 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Feb 2013
    Location
    Louisville, KY
    Posts
    41

    Form Behavior/ListBox

    Ok, so I have a main form. On the form is a ListBox. When a user clicks an item in the listbox, it will open a "pop-up" form to edit the record in the listbox. When the user closes the "pop-up" form, I'd like the ListBox on the main form to reflect the changes made in the "pop-up" form.



    How is this accomplished?

    Thanks!

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Restrict how the user closes the form that updated the table(s). Place some code that references the first form and requeries the listbox control. You will need to use the fully qualified name for the control

    Forms!FirstFormName!ListboxControlName.requery
    should do it.

    Also, may want to add some code to save records in the first form before the other form opens and save records when the user closes the form. This is in an effort to avoid a warning messages that records have changed.

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

Similar Threads

  1. Replies: 1
    Last Post: 07-10-2013, 08:57 AM
  2. Ubnormal SUM behavior
    By spleewars in forum Forms
    Replies: 1
    Last Post: 04-10-2012, 10:27 AM
  3. List Box Behavior
    By Paul H in forum Forms
    Replies: 2
    Last Post: 01-25-2012, 03:48 PM
  4. Web Form Behavior on Sharepoint
    By Flanders in forum SharePoint
    Replies: 1
    Last Post: 09-12-2011, 03:00 PM
  5. Form/Subform Tab Behavior
    By bsc in forum Programming
    Replies: 10
    Last Post: 08-31-2011, 04:01 PM

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