Results 1 to 13 of 13
  1. #1
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171

    Controlling Subform with Multiple combo box

    Hello friends,
    I created one form with two combo boxes and one sub-form.
    I want to control this sub form from this two combo boxes means first I will select Department then Location.In every department there will be two locations.
    Location1 and 2.
    it should show me records separately of location1 and 2 when I select them.
    see the attached image.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849

  3. #3
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    here is my form design

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    Did you watch the videos? Do you have a specific problem?
    Can you present the problem with some data?

  5. #5
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Yes I watched videos
    the problem is now that combo box selection is no working.
    If I select Factory A or B records in sub form is same not changing.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    Please show the RowsourceType and RowSource for each of your combo boxes.
    Please post a jpg of your Tables and relationships.

    And a description of your application and what exactly is the purpose of this form.
    The better we understand WHAT you are trying to do, the better your chances of getting advice.

  7. #7
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Here is my database, you check and advise.
    The main purpose of this database is to issue stationary to two different factories in same departments.
    https://www.box.com/s/6b5aeac1fc3ed8cc3616

  8. #8
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849

  9. #9
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    https://www.box.com/s/fbd385055e29d1b61bf6
    check this one in .mdb format.

  10. #10
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    I saw your database. You do not have a complete data model (tables and relationships).
    I think you are missing an Order Entity.

    You have not populated the LinkFields for the Form and Subform. I think you should name your forms so that one doesn't have to guess what they are.

    You can use tbl as prefix to Table names, frm as prefix to Form names etc.

    Can you give, even in point form, an overview of what the Forms and subforms are and what exactly you want them to do.

    It isn't clear to me what exactly the problem is, because I have no ideas what the purpose of the form(s) is/are.

  11. #11
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Mr. Orange I am not too familiar with access.
    The purpose of my database is very simple.I have to issue stationary to two different factories.
    from the first combo I will select Department name i.e "Production" then I will select Factory"A" from Second combo so it will show me records which I issued before in sub form.
    Now Department will b same "Production" and I will change in second combo "Factory B" so it will show me records or if I want to issue new material in sub form.
    Don't go with my database which i given here bcoz I know it is not rightly designed.
    you just give me a demo that how I can use two combo boxes with one sub form?

  12. #12
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,849
    The issue is NOT your familiarity with Access. You are attempting to create forms and create processes before you have designed your tables.
    It is a common issue with many novice database "developers".
    However, you must decide and understand in Business Terms, exactly WHAT it is you are trying to solve.
    Then, create your data model and see if it supports your requirements. This is an iterative process.
    Each time you find some anomaly, you must resolve it by either adjusting the data model or resetting the related business facts.
    At some point you will have established a workable data model from which you can create tables and relationships.
    Then, you can address form design and user interface.

    My earlier comments were about forms and subforms, but since are saying your design is not correct, I am trying to help you with design.
    Your can read this tutorial and see if you can apply it to your situation.

    http://www.rogersaccesslibrary.com/T...lationship.zip

  13. #13
    glen is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2012
    Posts
    171
    Ok thanks I will try.

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

Similar Threads

  1. Replies: 33
    Last Post: 01-13-2012, 07:44 AM
  2. Controlling subform resize
    By Deutz in forum Forms
    Replies: 2
    Last Post: 10-13-2011, 07:35 PM
  3. Controlling Subform from Main Form
    By SteveF in forum Forms
    Replies: 5
    Last Post: 07-01-2011, 05:32 PM
  4. Controlling autonumber
    By Patience in forum Access
    Replies: 3
    Last Post: 06-22-2010, 04:11 AM
  5. Checkbox controlling text box
    By chuckduarte in forum Forms
    Replies: 0
    Last Post: 10-21-2008, 10:45 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