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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List box shows duplicates 3

Status
Not open for further replies.

Masque

IS-IT--Management
Jan 30, 2002
4
GB
I have a list box that gets it's values from a table. How can I filter the list so not to show all the duplicates with the same name ?

Sorry couldn't SEARCH for this as TEK TIPS search hasn't been working.

Many thanks.
 
Try this:

Under the Properties of the List Box; Row Source; insert the words "SELECT DISTINCT" at the beginning of the phrase that is already there.

Hope this helps,

Susanne
 
Another way to get the same result is opening the Row Source Query for the drop down, right clickig in a blank bit to get the menu open, select Properties and change Unique Records to Yes.

It adds the SELECT DISTINCT in the right format automatically.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top