Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a Select query that strips duplicates

Status
Not open for further replies.

mych

Programmer
May 20, 2004
248
GB
I have a table that contains the following
[tt]
TblRequirements

RefNo TeamNo ReqNo ProjID
(Auto) (Number) (Number) (Text)
1 1 5 MD123
2 1 6 MD123
3 2 9 MD987
4 3 12 MD123
5 3 14 MD123
6 6 19 MD123
[/tt]

What I need is a Select query I can use to populate a cbobox which will list the TeamNo for a particular project.

My efforts to date give me the TeamNo but will include duplicates. For example for projectId MD123 I get 1,1,3,3,6 and all I want is 1,3,6

Any help appreciated!
 
Hi,

[tt]
Select Distinct...
[/tt]


Skip,

Want to get great answers to your Tek-Tips questions? Have a look at faq222-2244
 
Thanks Skip,

Works a treat!

Mych
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top