Results 1 to 6 of 6
  1. #1
    homerj56 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Location
    Roswell, GA
    Posts
    8

    Events Confusion?

    Access 2003. I have a continuous form (form_1). On the continuous form I have a cmd button to open another form (form_2 for adding new records). Form_1 query is based on form_2 query.

    When I am finished adding the new record, the EXIT button on form_2 takes me back to form_1. However, the new record does not display unless I exit/return form_1 or run a filter/sort on form_1. I have tried to requery the underlying data (for both form_1 and form_2 but no way can I get form_1 to update as soon as I return to it. I've tried a variey of events but no avail.

    Any suggestions are appreciated.

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    on the event of form_close of form_2, add following codes:
    forms!form_1.requery

  3. #3
    homerj56 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Location
    Roswell, GA
    Posts
    8

    Still Not Working

    Quote Originally Posted by weekend00 View Post
    on the event of form_close of form_2, add following codes:
    forms!form_1.requery

    Nope, form_1 is still showing the previous records and doesn't display the newly added until I sort/unsort, close, open, etc.

  4. #4
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    then you can sort them so that the new record will be shown.

  5. #5
    homerj56 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2010
    Location
    Roswell, GA
    Posts
    8
    Quote Originally Posted by weekend00 View Post
    then you can sort them so that the new record will be shown.
    Defeats the purpose, doesn't it? Are you telling me that Access cannot update the "calling" form automatically without the user having to sort/resort the data? What good is is the forms! requery command? Does this probelm have anything to do wit the fact that form_1 is a continuous form?

    UPDATE:My bad. I was requering the wrong query. Thanks - works.

  6. #6
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    Generally, requery should refresh the records. but in your case, i am not sure what is behind this to make it doesn't work.

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

Similar Threads

  1. Form_Load Events
    By TheDeceived in forum Programming
    Replies: 1
    Last Post: 09-20-2010, 12:19 PM
  2. Combo box lookup confusion
    By redpenner in forum Forms
    Replies: 5
    Last Post: 08-19-2010, 08:45 PM
  3. Combining events
    By daddylongtoe in forum Access
    Replies: 4
    Last Post: 06-25-2010, 02:55 AM
  4. Confusion
    By colenzo in forum Access
    Replies: 4
    Last Post: 07-21-2009, 06:38 AM
  5. Events Report, please help!
    By Suzan in forum Reports
    Replies: 3
    Last Post: 04-19-2006, 01:11 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