Results 1 to 4 of 4
  1. #1
    thtone is offline Novice
    Windows Vista Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    2

    Getting rid of duplicate options in a list box

    Hi all, I have an assignment I turned in but I got a part wrong and I cannot figure out how to correct it.

    https://www.box.com/s/pt8drv3mgpbz5nx62b21

    On the frmType the list box selection repeat themselves when there should only be one of each. The qryImprovedParameter is the related query.



    Any help would be really appreciated, Thanks a bunch!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    If you want to show just property types, have to exclude the unique identifer then change the ColumnCount, BoundColumn, ColumnWidths properties.

    SELECT DISTINCT PropertyType FROM tblProperty;
    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
    thtone is offline Novice
    Windows Vista Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    2
    Got it.

    I Figured out what was going wrong. I was selecting only one field on the wizard for the listbox query but it was populating it with three fields for whatever reason.

    It was something easy like I thought. Deleted extra fields in list box, changed column count. Done.

    Funny part is i could have sworn I tried this last night. Oh well, thanks again!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Cross post http://forums.aspfree.com/microsoft-...-537253-2.html

    Glad you found solution but don't understand how the mods you describe eliminated the duplication of property types in the RowSource. Because of the source table, would need either DISTINCT or GROUP BY query.
    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. Replies: 1
    Last Post: 11-08-2012, 02:55 PM
  2. Replies: 1
    Last Post: 08-18-2010, 02:36 AM
  3. Grouping Options
    By Desstro in forum Queries
    Replies: 1
    Last Post: 06-20-2010, 06:33 PM
  4. Don't show lookup list options in report
    By dara in forum Reports
    Replies: 1
    Last Post: 02-17-2010, 10:26 PM
  5. Need Duplicate List Box
    By newbie in forum Forms
    Replies: 7
    Last Post: 05-11-2009, 09:45 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