Results 1 to 3 of 3

Thread: Another interesting issue. DataSets and comboboxes. Problem solved, thanks Danial

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Location
    New Hampshire, USA
    Posts
    15

    Another interesting issue. DataSets and comboboxes. Problem solved, thanks Danial

    Here's the issue. I populated a combobox with a "names' column from my access database. eventually most of the names will appear more than once. How do I get the names to appear in the combobox only once? Is it possible to run a loop to populate the combobox then run another loop to make the names distinct?
    Last edited by BAE; May 22nd, 2004 at 06:42 AM.

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: Another interesting issue. DataSets and comboboxes.

    Originally posted by BAE
    Here's the issue. I populated a combobox with a "names' column from my access database. eventually most of the names will appear more than once. How do I get the names to appear in the combobox only once? Is it possible to run a loop to populate the combobox then run another loop to make the names distinct?
    Use sql Distinct command,

    E.g

    Select Distinct [Names] From MyTable Order By [Names]

    That will remove duplicate names.
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  3. #3

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Location
    New Hampshire, USA
    Posts
    15
    Thanks Danial,
    If I was a little smarter I would have just waited for my wife to get home. She's a SQL developer. I'm just learning this stuff, so that's my excuse. Anyway, Thanks Again. Have a Great Day.

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