Hi Otis,
I have a typedview, that contains two datetime field (on SQL Server), date1 and date2.
I want to filter all the records, where the date1>=date2.
I tried this:
dim myBucket as new RelationPredicateBucket
dim myQuery as MyTypedView
MyBucket.PredicateExpression.add(PredicateFactory.CompareValue( _
MyTypedViewFiledIndex.date1, ComparisonOperator.GreaterThan, _
MyTypedViewFiledIndex.date2))
MyAdapter.FetchTypedView(MyQuery.GetFieldsInfo, MyQuery, MyBucket, false)
When I execute this code, get the following exception:
"Invalid cast from enum to DateTime"
Is it a bug, or I missed something?
Thanks in advance
Gabor