Article View: borland.public.cppbuilder.database.ado
Article #2355Re: DBText choosing changing what record I display
From: Viatcheslav V. Vassiliev
Date: Fri, 29 Aug 2003 08:42
Date: Fri, 29 Aug 2003 08:42
63 lines
2397 bytes
2397 bytes
Look TDBNavigator component. You can traverse dataset with TDataSet method, so you should call ADODataSet1->First(), ADODataSet1->Next() etc. ---------------------------------------------------------------- Regards, Viatcheslav V. Vassiliev http://www.oledbdirect.com The fastest way to access MS SQL Server, MS Jet (MS Access) and Interbase (through OLEDB) databases. "Lee" <gobroski@elltel.net> �������/�������� � �������� ���������: news:3f4eff11@newsgroups.borland.com... > OK, here is what I am trying to do. > > > > I would like to read the names out of an Access table that I have populated > using ADO methods. The fields in the database are as fallows SID, LAST, > FIRST. Now I only need to show the First and Last fields, and that is easy > I have that showing, but how do I change records to show the next set. > > > > This is what I am using to connect to the table: > > //data is the data module > > //DataSource is just a standard TDataSouce and that connects to the > ADODataset > > DBText1->DataSource = Data->DataSource; > > //Datafield is Last > > DBText2->DataSource = Data->DataSource; > > //Datafield is First > > > > Is there a way I can choose what record set to display > > > > First record John Smith > > Click a Button > > Second record Jane Doe > > And so forth. > > > > Thanks for your help. > > > > Lee > >
Technical Details
Message-ID:
<3f4f120b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f4eff11@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,ac159d18908241fd X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-08-29 01:51:06 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3f4eff11@newsgroups.borland.com> Subject: Re: DBText choosing changing what record I display Date: Fri, 29 Aug 2003 12:42:26 +0400 Lines: 65 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: 213.234.218.42 Message-ID: <3f4f120b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062146571 213.234.218.42 (29 Aug 2003 01:42:51 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail