|
-
Jun 4th, 2003, 01:00 PM
#1
Thread Starter
Hyperactive Member
Remove Duplicates from Combo Box
Given a form [frm1] which contains a data combo box [dcb].
On form load the combo box is populated with a recordset (Records) containing all rows from my SQL Table. The combo box displays Column(1) only, however this field contains duplicates which I do not wish to display.
Code used:
Set dcb.RowSource = Records
dcb.ListField = Records(0).Name
How could I modify my code to ensure that no duplicate names appear in my combo box?
-
Jun 4th, 2003, 03:47 PM
#2
Frenzied Member
You'll need to use a SELECT DISTINCT query for the adCommandText.
Being educated does not make you intelligent.
Need a weekend getaway??? Come Visit
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|