Results 1 to 8 of 8
  1. #1
    Dan T is offline Novice
    Windows 8 Access 2016
    Join Date
    Aug 2016
    Posts
    13

    Removing Duplicates from Drop Down Menus

    Hello everyone. First post and new to this forum.



    I am a complete noob to access. Fast learner trying my own project.

    I have an issue with duplicates not being removed from my drop down menus.

    I have tried several things to remove them that i have found around numerous places online.

    The "Distinct" formula appears to not work for me,
    Code:
    SELECT DISTINCT [Data Spread].ID, [Data Spread].Make FROM [Data Spread];
    Have Tried by creating a query and having the drop down linked to it.
    Code:
    SELECT DISTINCT [Data Spread].Make, [Data Spread].ModelFROM [Data Spread]
    ORDER BY [Data Spread].Make, [Data Spread].Model;
    Also tried the "Unique Values" setting, This too is not working for me,


    Any ideas where to go from here or what i can do to assist you assist me.

    Kind Regards
    Dan

  2. #2
    Dan T is offline Novice
    Windows 8 Access 2016
    Join Date
    Aug 2016
    Posts
    13
    Also... Once this is sorted i will be linking the results of this drop down menu to determine what the next drop down will have to offer, This step will be carried over about 6 times. Is there an easy process for this to be completed?
    The next menus will be labeled,
    Model,
    Engine Type
    Transmission
    Drive
    Year
    Service Type.

    If this can be integrated into the assistance from the first question, it will assist immensely.

    Cheers

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    select distinct does eliminate duplicates, but you have included ID which is unique to each record....

    if you need the ID , then you need to store make and ID's in a separate table

  4. #4
    Dan T is offline Novice
    Windows 8 Access 2016
    Join Date
    Aug 2016
    Posts
    13
    Ajax, Thank you for your reply, Unfortunately i am a complete Noob, and i apologize, i do not understand what you mean nor how to fix it.

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    try

    Code:
    SELECT DISTINCT [Data Spread].Make FROM [Data Spread];

  6. #6
    Dan T is offline Novice
    Windows 8 Access 2016
    Join Date
    Aug 2016
    Posts
    13
    That is now returning a blank drop down.

    Ive tried uploading the file for reference but it is a tad too big.

  7. #7
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    run the query that ajax suggested in a query window, I can pretty much guarantee it returns values. It is more likely that your combo box has multiple columns and you have suppressed the first column, where ajax's query only returns one value (in the suppressed field) so you can't see it. Try making your first column of your combo box a width greater than zero.

  8. #8
    Dan T is offline Novice
    Windows 8 Access 2016
    Join Date
    Aug 2016
    Posts
    13
    Thankyou very much, has worked as suggested, Have managed to work out how to use queries and a few other wizards which is making things alot easier for me and have taken that avenue instead. Thank you very much for your input, as much as i am not using this method any more, i have now learnt for the future if i was to come across this issue again.

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

Similar Threads

  1. Removing Duplicates
    By hefferwolfe in forum Queries
    Replies: 1
    Last Post: 04-30-2014, 04:31 AM
  2. Drop Down Menus Printing in Report
    By Al77 in forum Reports
    Replies: 1
    Last Post: 03-01-2012, 06:33 PM
  3. Removing duplicates
    By DAVID W in forum Access
    Replies: 5
    Last Post: 12-21-2011, 03:15 PM
  4. Removing Shortcut menus on tables.
    By Desstro in forum Access
    Replies: 4
    Last Post: 11-04-2010, 12:19 AM
  5. Drop Down Menus
    By iambia in forum Access
    Replies: 1
    Last Post: 01-25-2008, 02:05 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