Results 1 to 3 of 3
  1. #1
    raffi is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Mar 2014
    Location
    Inside a Sub Procedure
    Posts
    88

    requery

    Hello, i have an item table, and a customer table, and a conjunction table with has both CustomerID and ItemID and a Primary key which has an autonumber




    i created a form out of the conjunction table, and within the form i placed 2 combo-boxes

    first combo-box is the customer lookup list
    second combo-box is the item lookup list

    and within the same form, ( the conjunction table form ) i also have 2 buttons,

    the first button is for the Item Main form, which when clicked upon it opens the form in dialog view, so i can manage the items much like adding deleting etc..
    the second button is for the customer Main Form ( again in dialog view ) , to manage the customers adding deleting etc...

    now .. the question is ... when i open the customer or item dialog view form, within the conjunction table form, and add a new customer or an item, and close the customer or item dialog view form, how can i requery the customer or item combo-box, after closing the dialog view forms,

    i try'ed using on close event procedure and wrote, requery combo-box's and so far it hasn't,

    any help would be much appreciated.

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    614
    Can you post your code in the Close Event?

  3. #3
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    In the code that opens the forms for Item or Customer, open the forms using acdialog as the data mode parameter (5th parameter):

    DoCmd.OpenForm formname, , , , acDialog. You have to use it this way - specifying the form as dialog doesn't work.

    This will stop the code until the form is closed.

    Then after the Docmd.OpenForm..., requery the related combo box: Me!comboboxname.requery.

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

Similar Threads

  1. Requery not working (again)
    By togo in forum Access
    Replies: 4
    Last Post: 10-16-2012, 10:23 AM
  2. Requery vs. Refresh
    By tylerg11 in forum Forms
    Replies: 3
    Last Post: 03-28-2012, 11:54 AM
  3. Requery
    By Grizz2 in forum Queries
    Replies: 2
    Last Post: 05-31-2011, 10:23 AM
  4. Replies: 1
    Last Post: 03-13-2011, 02:29 PM
  5. Requery?
    By CO711 in forum Forms
    Replies: 0
    Last Post: 08-06-2008, 08:03 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