Hi All,
I'm trying to display a range of names from a dataset in a datagrid. Like names starting with A through F.
This vb LIKE syntax works.
But appy the same to the rowfilter and it doesn't work.
The following works but it's tedious and probably slow to have all those OR statments.
Does anyone know a better way?
Thanks in advance
Scott
I'm trying to display a range of names from a dataset in a datagrid. Like names starting with A through F.
This vb LIKE syntax works.
Code:
bolTest = "Apple" LIKE "[A-F]*"
But appy the same to the rowfilter and it doesn't work.
Code:
Rowfilter = "DisplayName LIKE '[A-F]%'"
The following works but it's tedious and probably slow to have all those OR statments.
Code:
RowFilter = "DisplayName LIKE 'A%' OR DisplayName LIKE 'B%'"etc...
Does anyone know a better way?
Thanks in advance
Scott