Duplicate Items

  • Thread starter Thread starter Jim McGivney
  • Start date Start date
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
 
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.
 
use the distinct keyword in your query:

SELECT DISTINCT BLAH FROM Table

Karl
 

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