Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear colleagues,
Is there any way to filter ADO Recordest using criteria "[SomeColumn] NOT LIKE 'SomeExpresion'". I don't mean "NOT LIKE" criteria within SQL statement used in Recordset.Open(that's work correctly), but in context Recordset.Filter = "[SomeColumn] NOT LIKE 'SomeExpresion'". Wider context: I need to obtain the index(-es) - row position value(-s) of row(-s) within some data table, which satisfy some multiple column criteria, including also "NOT LIKE" criteria. The data source table is located in Excel Worksheet, and it doesn't contain "Primary Key" - index column(row unique identifyer). I will appreciate any help regarding this issue. Thank You in advance. Regards. Mirom. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Unfortunately (at least according to the ADO documentation) you cannot use a
Not operator in a Recordset Filter. I assume you have tried this and found it does not work (thus the reason for your post). It is a shame, since it would indeed be useful and it is mystifying to me why it was not implemented. There may be ways to use other filter clauses to get the results you want but that would depend on the specific pattern of characters you are trying to check against. -- - K Dales " wrote: Dear colleagues, Is there any way to filter ADO Recordest using criteria "[SomeColumn] NOT LIKE 'SomeExpresion'". I don't mean "NOT LIKE" criteria within SQL statement used in Recordset.Open(that's work correctly), but in context Recordset.Filter = "[SomeColumn] NOT LIKE 'SomeExpresion'". Wider context: I need to obtain the index(-es) - row position value(-s) of row(-s) within some data table, which satisfy some multiple column criteria, including also "NOT LIKE" criteria. The data source table is located in Excel Worksheet, and it doesn't contain "Primary Key" - index column(row unique identifyer). I will appreciate any help regarding this issue. Thank You in advance. Regards. Mirom. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank You very much for kind answer. Regards. Mirom.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Table Report Filter - "OR" instead of "AND" Multiple Filters | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
how can I use "filter" but keep "title" row in sight? | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |