Article View: borland.public.cppbuilder.database.ado
Article #1516Using OR in a filter condition
From: Nigel
Date: Mon, 03 May 2004 17:38
Date: Mon, 03 May 2004 17:38
17 lines
1238 bytes
1238 bytes
Hi all, Everytime I use OR in a filter condiiton on an ADO table it returns an error. When I us AND everything works as it should. Example ADOTable1->Filter="LastName='Nigel' AND Age>10"; //Works fine ADOTable1->Filter="LastName='Nigel' OR Age>10"; //Throws an error Is there something I am not doing right? Used to work fine using BDE. P.S. ADODatabase connected to MSAccess database. Thanks in advance Nigel
Technical Details
Message-ID:
<4096839d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,22e91307ad67c8d7,start X-Google-Attributes: gid10698b,public From: "Nigel" <nhussey@absamail.co.za> Newsgroups: borland.public.cppbuilder.database.ado Subject: Using OR in a filter condition Date: Mon, 3 May 2004 19:38:38 +0200 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 196.39.50.168 Message-ID: <4096839d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1083605917 196.39.50.168 (3 May 2004 10:38:37 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail