Results 1 to 3 of 3
  1. #1
    P5C768 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Aug 2009
    Location
    Denver, CO
    Posts
    95

    Use of Lookup Column Versus Listbox

    I know this is a common problem, but I couldn't find an answer using the search.

    I have a list of companies and a seperate list of the products each company offers. My goals is to have a form that allows a dropdown listbox where the user can select a company and once the company is selected, a second listbox is populated with the 3 to 5 products the company offers.



    What is the most effcient way to do this? Lookup columns on the table where the data is stored? Or is there a way to do it just using list boxes on a form?

    Thanks!

  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,521
    List boxes would work the same as combos:

    http://www.baldyweb.com/CascadingCombo.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    carlmdobbs is offline Novice
    Windows XP Access 2007
    Join Date
    Jan 2010
    Location
    Maryland
    Posts
    26
    Quote Originally Posted by P5C768 View Post
    I know this is a common problem, but I couldn't find an answer using the search.

    I have a list of companies and a seperate list of the products each company offers. My goals is to have a form that allows a dropdown listbox where the user can select a company and once the company is selected, a second listbox is populated with the 3 to 5 products the company offers.

    What is the most effcient way to do this? Lookup columns on the table where the data is stored? Or is there a way to do it just using list boxes on a form?

    Thanks!
    Hello. It is simple for those who know VBA and SQL. You need to
    actually use the "after update" event of your company combo box to give a second list box or combo box a new rowsource. This will enable them to pick a product. If the list box is multi-select you can enable them to pick several products from it.

    MS Access's combo boxes also have the ability to display a check mark along side the list. This can enable the user to select more than one item from the combo box. I do not recommend this, though, as it has drawbacks from a programmer's point of view.

    I can teach you how to solve your problem. I donate hours to people who use this blog and wouldn't mind allotting you 2 hours for this. If you are interested I can write the VBA code for you.

    Carl Dobbs
    Dobbs Comptuter Institute

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

Similar Threads

  1. Access versus FileMaker Pro Advanced
    By genesis in forum Access
    Replies: 1
    Last Post: 08-20-2009, 01:00 AM
  2. Lookup values in one column from another record
    By cjayjones in forum Queries
    Replies: 16
    Last Post: 08-05-2009, 02:27 PM
  3. dlookup versus SQL value search
    By marianne in forum Access
    Replies: 3
    Last Post: 07-15-2009, 09:23 AM
  4. Replies: 1
    Last Post: 04-09-2009, 09:18 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