Article View: borland.public.cppbuilder.database.ado
Article #2681ADO error
From: BOBAH
Date: Fri, 04 Apr 2003 20:49
Date: Fri, 04 Apr 2003 20:49
32 lines
1760 bytes
1760 bytes
source
switch (RadioGroup1->ItemIndex)
{
case 0:
Data->ADOTable1->Filtered = false;
Data->ADOTable1->Filter="apptype= 1 and DataTime>= "+DateToStr(Now());
Data->ADOTable1->Filtered = true;
break;
case 1:
Data->ADOTable1->Filtered = false;
Data->ADOTable1->Filter="apptype= 1 and DataTime>= "+DateToStr(Now()-7);
Data->ADOTable1->Filtered = true;
break;
case 2:
Data->ADOTable1->Filtered = false;
Data->ADOTable1->Filter="apptype= 1 and DataTime>= "+DateToStr(Now()-30);
Data->ADOTable1->Filtered = true;
break;
case 3:
Data->ADOTable1->Filtered = false;
Data->ADOTable1->Filter="apptype= 1";
Data->ADOTable1->Filtered = true;
break;
}
on my PC works fine, on other PCs have error "Item cannot be found in the
collection corresponding to the requested name or ordinal"
why?
Bob
Technical Details
Message-ID:
<3e8def25$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,57277789b9123f39,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-04-04 12:54:01 PST From: "BOBAH" <bobah@softhome.net> Newsgroups: borland.public.cppbuilder.database.ado Subject: ADO error Date: Fri, 4 Apr 2003 15:49:35 -0500 Lines: 34 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: 216.191.156.42 Message-ID: <3e8def25$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1049489189 216.191.156.42 (4 Apr 2003 12:46:29 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail