Removing duplicates in a listbox

Results 1 to 2 of 2

Thread: Removing duplicates in a listbox

  1. #1
    Join Date
    Dec 1969
    Posts
    3

    Default Removing duplicates in a listbox

    Hello Everyone. Is there a way to remove duplicate values in a list box on the fly. Im trying to populate a listbox from a databse that has a many to many relationship but I just want to put info in a listbox without the duplicate values. I have been manually fixing the listbox to rid of the duplicates. Any help would be appreciated

  2. #2
    Join Date
    Dec 1969
    Posts
    572

    Default RE: Removing duplicates in a listbox

    Try to use DISTINCT in your SQL statment, like the following:<BR><BR>select distinct somename from sometable... <BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •