Duplicate records in combo box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am currently working on a program in access 2003. We have a combo box,
but there are a lot of duplicate text in the combo box, we used the wizard
"Find a record on my form based on the value I selected in my combo box.".
How exactly do I have each duplicate value only show once?

Thanks
 
Add DISTINCT to the combo's RowSource query statement.

For example, if the RowSource is the Gender field, and lots of records have
M for male and F for female, use:
SELECT DISTINCT Gender FROM Table1;

A better solution is to create another table that has the valid choices for
the combo, and create a relationship to your existing table. Then use the
lookup table as the RowSource for the combo.
 
Hello,

This worked great, I knew there was a way to do this but my mind blanked.

Thanks for your help,

Andy
 

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

Back
Top