|
-
May 15th, 2004, 07:51 AM
#1
Thread Starter
New Member
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.
-
May 16th, 2004, 08:33 AM
#2
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 : 
-
May 22nd, 2004, 06:35 AM
#3
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|