Article View: borland.public.cppbuilder.database.ado
Article #1513Re: Index Search
From: Viatcheslav V. Vassiliev
Date: Thu, 29 Apr 2004 05:31
Date: Thu, 29 Apr 2004 05:31
40 lines
2257 bytes
2257 bytes
You can not do that - OLEDB providers method SetRange but ADO does not. Also indeces work only on server-side cursor. You may add WHERE to your query and specify needed diapason. //------------------------------------------ Regards, Vassiliev V. V. http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + ADO.Net http://www.oledbdirect.com - The fastest way to access MS SQL Server, MS Jet (Access) and Interbase (through OLEDB) "Kim Utley" <kim@simsware.com> �������/�������� � �������� ���������: news:408fbb65$1@newsgroups.borland.com... > Hello All! > > I have Microsoft access tables where each record has a date/time stamp when > it was last modified. In addition my primary key does not contain this value > however, I do have an index called DateTimeStampIx which only contains this > value. I perform the following: > > TADOTable->Active = false; > TADOTable->IndexName = "DateTimeStampIx"; > TADOTable->Active = true; > > Now my question is how do I only obtain records with a date/time stamp > greater than a specified value (e.g., greater than "01/01/2004 12:00AM")? > The Locate() and Seek() methods appear to want an equal operator with or > without a partial match.. > > Kindest Regards, > > > Kim L. Utley > >
Technical Details
Message-ID:
<4090933b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news-in.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<408fbb65$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,de2cd043e1b62a25 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-04-28 22:39:26 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <408fbb65$1@newsgroups.borland.com> Subject: Re: Index Search Date: Thu, 29 Apr 2004 09:31:37 +0400 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 213.234.218.42 Message-ID: <4090933b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1083216699 213.234.218.42 (28 Apr 2004 22:31:39 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsrout1.ntli.net!news-in.ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail