Duplicate Items

J

Jim McGivney

In VWD I have an aspx page with a DropDownList control. The DropDownList
is populated from a column from a table in an Access database.
If there are duplicate values in the column they are added to the
DropDownList. Is there a way to eliminate duplicate items on the
DropDownList ?
Thanks,
Jim
 
G

Guest

Use the DISTINCT keyword in the SQL that generates the drop down list, e.g.

SELECT DISTINCT ValueField, TextField FROM Table

This will return only unique rows.
 
K

Karl Seguin [MVP]

use the distinct keyword in your query:

SELECT DISTINCT BLAH FROM Table

Karl
 
S

Swanand Mokashi

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

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top