🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1534

Re: Index Search

#1534
From: Nigel
Date: Sat, 08 May 2004 05:13
39 lines
1912 bytes
Hi,

Use rather

TADOTable->IndexFieldNames = "DateTimeStampIx";

//Set the filter condition
TADOTable->Filter="DateTimeStampIx > #01/01/2004 12:00AM#";
TADOTable->Filtered = True;

hope this helps

"Kim Utley" <kim@simsware.com> wrote in message
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: <409c6c6d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.yul.equant.net!c03.atl99!news.usenetserver.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <408fbb65$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,de2cd043e1b62a25
X-Google-Attributes: gid10698b,public
From: "Nigel" <nhussey@absamail.co.za>
Newsgroups: borland.public.cppbuilder.database.ado
References: <408fbb65$1@newsgroups.borland.com>
Subject: Re: Index Search
Date: Sat, 8 May 2004 07:13:22 +0200
Lines: 41
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.48.37
Message-ID: <409c6c6d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1083993197 196.39.48.37 (7 May 2004 22:13:17 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.yul.equant.net!c03.atl99!news.usenetserver.com!news02.tsnz.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail