Results 1 to 2 of 2
  1. #1
    Brent D is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2013
    Posts
    1

    How to run a reqruey on form 1 after closing form 2

    This is my first post so lets see if someone can help me with my question. I have 2 froms. Form1 is used for data input in a customer call database and is linked to my main data table. On Form1 there is a Listbox that displays notes everytime we talk to the customer. I have a Button that calls Form2 where you enter the actual note. Form2 has a txtbox for the imput and a SAVE and CLOSE button. I'm good up to this point. Here is the question. When I click the save button it updates the NOTES table ok and it closes FROM2 but what I can't figure out is how to transfer control back to FORM1 and update FORM1 so the listbox containing the notes is updated and displays the new note with all the previously existing notes. I guess really what i need is help understanding what happens after a from is closed. What is next function ACCESS will perform??



    Thanks in advance!

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows XP Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    You could use some code in the On Close event of Form2 to requery the control on Form1 that shows the notes. Something like:
    Forms!Form1Name.ControlName.Requery
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Editing form control except when closing form
    By EddieN1 in forum Programming
    Replies: 1
    Last Post: 07-26-2013, 05:22 PM
  2. Don't save when closing form
    By thefairman in forum Forms
    Replies: 4
    Last Post: 02-21-2012, 09:00 PM
  3. Replies: 5
    Last Post: 12-22-2011, 01:12 PM
  4. Closing 1 form and opening another
    By mulefeathers in forum Forms
    Replies: 13
    Last Post: 12-08-2011, 04:04 PM
  5. Closing a form through VBA
    By ghostmachine in forum Forms
    Replies: 4
    Last Post: 12-13-2010, 01:57 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