"randy1200" <(E-Mail Removed)> wrote in message
news

BF96CFC-541C-4B74-BF90-(E-Mail Removed)...
>I have the following line of code (.NET 2.0):
>
> myDataView.RowFilter = "SELECT DISTINCT CYCLE_DATE";
>
This is wrong. The RowFilter does not take a "Select" statement. It only
takes the part that would go after the "Where" in a "Select" statement, such
as
myDataView.RowFilter = "field1>27 AND field2<45". Since the "distinct" does
not go after the "where", the dataview is not adequate for doing the kind of
filtering that you want.