Results 1 to 4 of 4
  1. #1
    Dega is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73

    Requery fails

    I have a form with a button that runs a requery but this fails. There are no errors thrown.
    This forces me to close the database form and reopen to see the list box populated correctly.
    The problem lies in the subform data, but I have attached a macro to this subform and it still fails.
    Anyone have any idea on where to look ?


    Thanks

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    What do you mean by "it fails"? Does it do anything? What is behind the button you mentioned?

  3. #3
    Dega is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jan 2010
    Location
    Calgary, AB
    Posts
    73
    When it fails it just doesn't requery.
    I thought running a requery macro attached to the button would do it.

    frmBookings is the form name.
    roomGroupID is the field name which is populated by a query.

    Closing and then opening the form displays the new record which was entered using the main form (frmCustomers) ...

    Thanks

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Requerying a MainForm does not Requery any SubForm on it. You need to specifically requery the SubForm as well.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-19-2010, 01:08 PM
  2. Replies: 1
    Last Post: 03-26-2010, 10:32 PM
  3. Parameter Query Fails Occasionally
    By jp2access in forum Programming
    Replies: 0
    Last Post: 08-26-2009, 07:33 AM
  4. Requery?
    By CO711 in forum Forms
    Replies: 0
    Last Post: 08-06-2008, 08:03 AM
  5. Drop down box requery problem
    By Nicholas in forum Forms
    Replies: 1
    Last Post: 08-11-2006, 11:42 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