To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
MSDN Subscribers: Download the VS 2010 Release Candidate
MSDN Subscribers: Download the VS 2010 Release Candidate
Sell Your Code and Make Money?
Creating your own Tetris game using VB.NET
Article :: Improving Software Economics, Part 4 of 7: Top 10 Principles of Iterative Software Management



Go Back   VBForums > Visual Basic > Database Development

Reply Post New Thread
 
Thread Tools Search this Thread Display Modes
Old May 15th, 2004, 08:51 AM   #1
BAE
New Member
 
Join Date: Dec 03
Location: New Hampshire, USA
Posts: 15
BAE is an unknown quantity at this point (<10)
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 07:42 AM.
BAE is offline   Reply With Quote
Old May 16th, 2004, 09:33 AM   #2
Danial
Big D
 
Danial's Avatar
 
Join Date: Jul 00
Location: ASP.Net Forum
Posts: 2,877
Danial will become famous soon enough (80+)
Re: Another interesting issue. DataSets and comboboxes.

Quote:
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 :
Danial is offline   Reply With Quote
Old May 22nd, 2004, 07:35 AM   #3
BAE
New Member
 
Join Date: Dec 03
Location: New Hampshire, USA
Posts: 15
BAE is an unknown quantity at this point (<10)
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.
BAE is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Database Development


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:40 AM.




To view more projects, click here

Acceptable Use Policy


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.