Results 1 to 4 of 4
  1. #1
    Monkeyisland is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2017
    Posts
    2

    how to manage two combo boxes to requery subform

    Hi,
    I have 2 forms on my DB - one to allow user to create a new record. The second to select and modify the record. Its for a manufacturing environment so user enter a work order number (WO).

    In the second form they enter the WO (scan WO from paperwork into ComboBox) and the AfterUpdate event queries the table for the WO and refreshed the subform with the data.

    I have now modified so the user enters the step on the WO e.g. Step 10 or 20 or 30 so I now have multiple entries for the WO in the table.

    How can I design my 2nd form to refresh the subform ? Do I need a second ComboBox for the user to scan in the step and how do I structure my query in the AfterUpdate ? Or is that the way to go ?

    New to this so appreciate any help / advice you can offer.

    Thanks, M.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    you shouldnt use 2 forms. 1 form can do data entry and edits. This way you dont get this unsync'd list.
    but
    if you want to continue using 2 forms, you can refresh 1 form from another just by using the full path....

    in fMyForm1:
    forms!fMyForm2!subform.requery

  3. #3
    Monkeyisland is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2017
    Posts
    2
    OK - I can see the advantage of using one form - I can have a button to create a new record. But if an operator enters 10 new records and needs to edit record #3 how can I prompt for WO and Step ? Combobox ?
    thanks, M


    Quote Originally Posted by ranman256 View Post
    you shouldnt use 2 forms. 1 form can do data entry and edits. This way you dont get this unsync'd list.
    but
    if you want to continue using 2 forms, you can refresh 1 form from another just by using the full path....

    in fMyForm1:
    forms!fMyForm2!subform.requery

  4. #4
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Not sure how the data looks for your work order, but usually in these scenarios there is a combobox to select a work order and a continuous subform showing all the records belonging to that work order. The user can then edit whichever record they wish.

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

Similar Threads

  1. Replies: 2
    Last Post: 06-03-2013, 11:52 AM
  2. Requery with cascading combo boxes
    By TanyaH in forum Forms
    Replies: 8
    Last Post: 04-21-2013, 07:12 AM
  3. cascading combo boxes, .requery not working
    By jsmath22 in forum Forms
    Replies: 8
    Last Post: 10-12-2012, 12:28 PM
  4. Cascading Combo Boxes Requery Problem
    By Jo22 in forum Forms
    Replies: 9
    Last Post: 01-28-2012, 09:41 AM
  5. Help with Combo Boxes/requery....etc
    By noaccessguru in forum Forms
    Replies: 9
    Last Post: 06-06-2011, 05:50 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