Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default ADO Recordest.Filter "NOT LIKE"

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default ADO Recordest.Filter "NOT LIKE"

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default ADO Recordest.Filter "NOT LIKE"

Thank You very much for kind answer. Regards. Mirom.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pivot Table Report Filter - "OR" instead of "AND" Multiple Filters tommcbrny Excel Discussion (Misc queries) 1 October 29th 09 03:08 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
how can I use "filter" but keep "title" row in sight? Erni Excel Discussion (Misc queries) 4 May 29th 06 05:11 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


All times are GMT +1. The time now is 09:59 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"