Results 1 to 6 of 6
  1. #1
    dantejazz is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    10

    Post: 'Combo Box Showing Table Data From User Selection'

    Good afternoon.

    I have been searching the forum for a couple days now and cannot locate a post wherein an answer was provided to a member for the following:

    - (2) Combo Boxs on a single Form
    - (1st) Combo Box lists multiple Tables (same DB)
    - (2nd) Combo Box - depending on the User selection of (1st) Combo Box - will show the items (Data) associated with the Table selected
    - e.g., [Lawn & Garden / rake, shovel, birdseed, etc.],...[Housewares / pots, pans, towels, etc.],...and so on.

    The goal is to have one form where a user can access multiple department items for 'Special Order', if not stocked, and update a general record for sorting / reporting.

    The post that I read several months ago have the perfect method for doing this and I would love to find it.



    As always, thank you in advance for any assistance and guidance.

    dj

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    You're having trouble finding a solution because it's unusual to have data in multiple tables like that. Typically you'd want it in one table with a field to denote the "department" or whatever. So in your situation the user would first choose the "department", and then the second combo would restrict to that choice. I'd change the design, but you can adapt the code method here to choose the table if you want to stick with it:

    Baldy-Cascading Combos
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    dantejazz is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    10
    pbaldy,

    Thank you for the quick reply.

    The only reason that I separated the data in the tables is because I was worried about the size of the table once all of the department items were loaded. There could potentially be several hundred items for each area. Ultimately that could mean thousands of line-items covering every aspect of the store in one gi-normous table.

    I am not set on this as a final design and am willing to move on with your advice. A redesign may be the best answer.

    What are your thoughts on the overall table size? The final, sorted list (which is normally 20-30 items) is not impacted by the actual table sizes of the departments. The list will be used by one of our interns to place the Special Orders.

    Again, thank you for your input.

    dj

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Thousands of records is trivial. If you had said millions, I might begin to worry. I'd still normalize the table; your current design will be a headache in more ways than this one. Wait till they say "Hey DJ, put together a report that includes 'Home and Garden' and 'Hardware', but excludes ...". Easily done with criteria when the data is in one table.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    dantejazz is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2012
    Posts
    10
    I feel much better about this. A redesign it is then!

    The 'learning curve' is still holding me back a little. But, I know that everything comes with time and practice.

    I greatly appreciate your help, pbaldy.

    (p.s. - Had I stayed with this design,...the link you provided was well written and I learned something about the process.)

    dj

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Happy to help, and thanks! You may still want the link; you'd actually be able to use it pretty much as-is without having to modify the "FROM" table.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Selection in Combo Box to set Yes/No in a Table?
    By alpinegroove in forum Forms
    Replies: 1
    Last Post: 01-08-2012, 06:24 PM
  2. saving Combo Box selection to a table
    By rmiell in forum Access
    Replies: 1
    Last Post: 10-04-2011, 11:38 AM
  3. Replies: 0
    Last Post: 06-29-2011, 01:04 PM
  4. combo box selection stored in table
    By combine21 in forum Forms
    Replies: 1
    Last Post: 12-02-2010, 09:57 PM
  5. Replies: 1
    Last Post: 10-19-2009, 02:37 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