Results 1 to 4 of 4

Thread: Remove duplicates from list box

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Antrim
    Posts
    80

    Unhappy

    Hi,

    I want to place a list/combo box on a form to look up a column in my database.

    However the column contains multiple duplicates and I don't want to be able to see these.

    I only want to be able to see any individual value once.

    If it is repeated in the database then I don't want to be able to see the duplicate(s).

    Someone told me how to do this once before but I can't remember how it's done.

    Can anybody help?

    Best Regards,

    Rob Brown.

  2. #2
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696

    Question

    Hi Rob

    Is your Box bound to a control source or are you Using A SQL statement for the row source?

    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Antrim
    Posts
    80
    I haven't created it yet so I suppose it doesn't really matter.

    Which way is easier?

  4. #4
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696

    Smile

    If you Set the row source to "SELECT DISTINCT * FROM tbltest", providing you have a Primary key set up, it will return just One occurance of the record. You can do the same also with a control source. Instead of linking it straight to the table make it the same as above. Either way it does the job.

    Hope This helps

    Ian
    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

Posting Permissions

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



Click Here to Expand Forum to Full Width