Results 1 to 5 of 5
  1. #1
    RoundTrip is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    28

    Trouble With Information That keeps repeating


    Click image for larger version. 

Name:	picture help.png 
Views:	9 
Size:	166.9 KB 
ID:	16056
    As you can tell I have two problems, I have a combo box for Location, and a combobox for Equipment Number, Now I have a problem with these two combo boxes, I have the Row source coming from a separate form and the Row Source Type a Table/Query. Now as you can tell I have a problem of repeating information, how do I make it where it only says Shelby once, and etc for my EquipmentNo problem. So if you guys don't mind pointing me in the right direction of what to do. If you guys need any more information, just let me know please! Thankyou guys ahead of time for everyone helping.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    Options:

    1. Have tables of these unique values and use those tables as sources for the combobox lists

    2. Use DISTINCT qualifier
    SELECT DISTINCT Location FROM tablename ORDER BY Location;
    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
    RoundTrip is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2014
    Posts
    28
    Hmmm, thank you for the quick response! I am not trying to get you to spoon feed me, but the person who usually helped me on access has moved and I can't really ask him questions about things anymore, so if you do not mind me asking what is most likely stupid questions to you, but what exactly do you mean about a unique value? Do you mean the primary key or something else? I am taking it that according to the order you put it in, you would choose number 1 as the best option or?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    Did you try to change the RowSource of the combo as June7 suggested?

    DISTINCT === Unique
    The SELECT DISTINCT statement is used to return only distinct (different) values.

    Instead of showing 20 or so Shelby, just show 1.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,600
    Option 1 is the more conventional approach but I do use option 2.

    Unique means there is only one record with that value.
    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.

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

Similar Threads

  1. repeating rows
    By slimjen in forum Forms
    Replies: 1
    Last Post: 11-20-2013, 03:26 PM
  2. Repeating Function
    By Code5OnYou in forum Forms
    Replies: 4
    Last Post: 01-12-2012, 01:55 PM
  3. More efficient way of repeating code
    By karmacable in forum Programming
    Replies: 2
    Last Post: 09-12-2011, 12:43 AM
  4. Replies: 1
    Last Post: 09-08-2011, 06:36 PM
  5. Repeating Records
    By windwardmi in forum Reports
    Replies: 13
    Last Post: 05-22-2010, 02:54 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