Results 1 to 5 of 5
  1. #1
    jown is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    3

    Combobox filter

    I`m using access 2010 version, i have one table(Customer) which has one-to-many relationship to the table(Order), so the Order table contains many records from one single record in Customer. How to create a combobox that filter and show how many orders the Customer has.
    Example:



    Table(Customer)
    Line 1 - Crystal

    Table(Order)
    Line 1 - Water
    Line 2 - Cookies
    Line 3 - Pens

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    You want an unbound combobox to use as criteria for filtering records?

    Do you have a form/subform arrangement for the Customer and Order records?

    Could build a report to output this data.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    jown is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    3
    Hey June7,

    Thanks for your response and for your hint,

    I`ve created main form based on Customer and the Order is in tabcontrol(dragging the fields which are relevant in tabcontrol). So I want my unbound combobox to show a list of orders from client, it will show in client 1 how many orders....When i click in one item of the list the information will appear in tabcontrol.
    In this case how to proceed?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,956
    You have the Order table bound to a subform sitting on main form bound to Customer? Review: http://office.microsoft.com/en-us/ac...010098674.aspx With this arrangement there is no need for a combobox to show customer orders.

    Alternative is a single form bound to Order table and just a combobox to select customer.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    jown is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    3
    June7,

    In my case, the tab control display shows only relevant fields and it is more easier to get what the client ordered. So That's why i've create my form this way, however i've built the form like the way you said and it's not bad but it is not efficient for me. Thanks for all your time and help. I 'll figure out another way to work with combobox and reports.

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

Similar Threads

  1. Replies: 1
    Last Post: 09-06-2011, 01:47 PM
  2. Replies: 29
    Last Post: 08-16-2011, 05:52 PM
  3. Filter by comboBox value
    By blueraincoat in forum Forms
    Replies: 6
    Last Post: 03-16-2011, 09:49 AM
  4. Replies: 0
    Last Post: 08-24-2010, 06:38 PM
  5. Replies: 0
    Last Post: 12-16-2009, 01:14 PM

Tags for this Thread

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