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!

Listbox- Limiting list

Status
Not open for further replies.

ianbar

Technical User
Jan 10, 2003
69
GB
I have a list box which currently displays the returned product from a table. The problem is there's a lot of repeat enteries ie 10 of the same product has been returned, how can I limit it to one entery per product type?
 
In the rowsource of the listbox add DISTINCT after SELECT.

That should do it...

There are two ways to write error-free programs; only the third one works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top