Article View: borland.public.cppbuilder.database.ado
Article #3081Re: ADOTable Filter & NOT LIKE '%.....%' Problem!
From: Mark Guerrieri
Date: Sun, 15 Dec 2002 08:36
Date: Sun, 15 Dec 2002 08:36
37 lines
2116 bytes
2116 bytes
the ADO Filter property does not support the NOT clause. Also, you should use single quotes around character literals. See http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/ mdprofilter.asp for full Filter support docs. To get around this, write an OnFilterRecord (?) handler to filter records on any criteria you desire. Mark Guerrieri mguerrieri@cmsgrp.com "Farrokh Ghani Zadegan" <fghz@toosashena.com> wrote in message news:3dfb71ef@newsgroups.borland.com... > Hi! > > I'm using BCB6, ADO (Microsoft OLE 4.0 Provider), and MS Access database, > and receive an error message when I apply the following filter to a table: > > TextFieldName NOT LIKE "%abc%" > > The error message sais: > > "The application is using arguments that are of the wrong type, are out of > acceptable range, or are in conflict with one another." > > The strange point is that the filter: (TextFieldName LIKE "%abc%") works > correctly on the same table and set of fields. > > Please tell me if you know any workaround for this problem. > > Thank you in advance, > Farrokh > >
Technical Details
Message-ID:
<3dfc3f28$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!gatel-ffm!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3dfb71ef@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,b078c112a455d4f5 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-12-15 00:39:42 PST From: "Mark Guerrieri" <markg11@comcast.net> Newsgroups: borland.public.cppbuilder.database.ado References: <3dfb71ef@newsgroups.borland.com> Subject: Re: ADOTable Filter & NOT LIKE '%.....%' Problem! Date: Sun, 15 Dec 2002 03:36:59 -0500 Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 68.44.67.205 Message-ID: <3dfc3f28$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1039941416 68.44.67.205 (15 Dec 2002 00:36:56 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!gatel-ffm!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail