Results 1 to 3 of 3
  1. #1
    Cheg is offline Novice
    Windows XP Access 2010 (version 14.0)
    Join Date
    Aug 2010
    Posts
    1

    Remove Combo-Box Duplicates - Ignore Autonumber

    Hey - I used to be fairly decent with Access, but havent used it for a good 8 years, and have forgot most.



    The basic story is as follows:

    Table 1:

    ProductID (Primary Key)
    ProductName (I.E Golfclubs or Deck Chairs)
    Amount (Amount of the above that can be bought - 1000, 2000 or 5000)
    ProductPrice

    A quick example would be:

    1...DeckChairs...1000
    2...DeckChairs...2000
    3...DeckChairs...5000
    4...Golfclubs...1000
    5...Golfclubs...3000

    I'm trying to figure out the easiest way to create 2 combo boxes on a form.

    The first will show me a list of products I have. In this case, removing duplicates it will show DeckChairs and Golfclubs.

    The second combo box needs to show the amount they can buy based on which product they chose - choosing Deckchairs shows 1000, 2000 or 5000. Choosing Golfclubs shows 1000 or 3000.

    The problem I am running into is that in order to remove duplicates in the first box, I have to remove the ProductID in the rowsource, and I think this is messing stuff up.

    I have a feeling the issue may be in my table to begin with though. Can anyone offer a guiding hand?

  2. #2
    Datagopherdan is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Dec 2008
    Posts
    220
    The problems sounds as though it's in your design. I'm assuming that you're just showing examples. In the actual database, one price would be tied to Deck Chairs, Golf Clubs etc. The basic design would be to have a Products table and a price change history table since prices do tend to fluctuate. You would do a one to many between your products and price change history table and in order to keep it simple, you can have a check-box in the price change history table for "Active". This would note which is the current price.

  3. #3
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    change the data source of combo1 to:
    select distinct productname from table1

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

Similar Threads

  1. combo box - no duplicates
    By pkg206 in forum Access
    Replies: 1
    Last Post: 11-12-2009, 10:41 AM
  2. How to remove duplicates
    By TonyBender in forum Access
    Replies: 0
    Last Post: 10-21-2009, 10:27 PM
  3. Deleting Duplicates
    By TundraMonkey in forum Queries
    Replies: 4
    Last Post: 09-08-2009, 07:13 AM
  4. On Click - Ignore Required Fields
    By amy in forum Forms
    Replies: 1
    Last Post: 08-18-2009, 07:42 AM
  5. Pulling out duplicates
    By FREEEEEEDOM in forum Access
    Replies: 1
    Last Post: 04-21-2009, 10:37 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