Gene,
It sounds like either a badly formed expression or too complex an
expression.
Although I don't know if the limits of the Expression is documented, I have
seen limits. One way to avoid these limits is to pick a "Better" operator.
For example, use the In operator instead of = if you are comparing a single
field to a list of values.
Use:
Dim view As DataView
view.RowFilter = "FirstName In ('Jay', 'Cor', 'Herfried', 'Gene')
Instead of:
Dim view As DataView
view.RowFilter = "FirstName = 'Jay' Or FirstName = 'Cor' Or FirstName =
'Herfried' Or FirstName = 'Gene')
Of course if you want to match both names, then this may not work as well. I
would consider letting your database do the selection in this case.
For information on expressions, such as DataView.RowFilter, in the DataSet
object model see the DataColumn.Expression help topic.
http://msdn.microsoft.com/library/d...fsystemdatadatacolumnclassexpressiontopic.asp
Hope this helps
Jay
Hope this helps
Jay