Combo Box Duplicates

  • Thread starter Bruister via AccessMonster.com
  • Start date
B

Bruister via AccessMonster.com

I am using contents of a table to use in a list in a Combo Box except there
are many duplicate values in the field I wish to use. How can I easily hide
duplcates in my list view in the CB?
 
A

Al Campagna

Bruister,
In the query behind your combo box, use a Totals query, and GroupBy on
that field.
If these values come from your actual table values, you might want to add
a criteria to that query field...
Is Not Null
to not show a null combo selection.
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."
 
L

Linq Adams via AccessMonster.com

In the Select statement for the combobox RowSource, add the keyword Distinct:

SELECT DISTINCT FieldName FROM TableName ORDER BY FieldName
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top