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

Duplicate entries in combo boxes

Status
Not open for further replies.

Teddo

Technical User
Jun 28, 2002
22
0
0
GB
I have a form that selects the criteria for a query. One of the fields [Marketing type] is in the form of a combo box, that takes its data from a field of the same name in the table [Marketing Activity]. There are several duplicate entries in this field.

How can I get my combo box to look up all entries in this field and prevent duplicate entries?

Thanks to anyone who can help me.

Ted
 
Hi Ted,

Use the Distinct clause in the query. This will filter duplicates...

Select Distinct [Marketing Activity].[Marketing type] From [Marketing Activity];

Set the Rowsource of the combo box equal to that query. dz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top