combo box duplicates

j3andc

Board Regular
Joined
Mar 4, 2002
Messages
172
I am using a combo box to populate data. I have 6 records currently in the table and 3 of them are the same. The combo box is listing all 3 when I am trying to select a new one. I want the list to only show the duplicates one time. How do I do this?

Jim
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
If you click on the builder button for the row source this will open a QBE grid. if you call up the property sheet for the query you can then select to have unique records.

HTH

Peter
 
Upvote 0
That worked exactly how I expected.

If I type in a new value, rather than select one from the list, shouldn't the list update itself the next time I look at it to include the new value?
 
Upvote 0
only if it is bound to the record source and you have not set it to "Limit to List"

try it and see, just use a copy while you are developing :)

Peter
 
Upvote 0
This is going to sound stupid, but how do I know for sure that it is "bound to the record source"?
 
Upvote 0
if the value changes as you change records then it is bound to the table behind the form.

Peter
 
Upvote 0
Ok.

If that is not happening, how do I change it so it is bound to the record source?
 
Upvote 0
In the property sheet for the combo-box is a field called "Row Source" click in it and then use the drop down to pick the field you want to bind it to.


peter
 
Upvote 0
This is what it current says in the field.


SELECT DISTINCT [Song Title].[Text Direction] FROM [Song Title] ORDER BY [Song Title].[Text Direction];

Song Title is the table name
Text Direction is a field in that table.
 
Upvote 0

Forum statistics

Threads
1,221,810
Messages
6,162,108
Members
451,743
Latest member
matt3388

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top