Article View: borland.public.cppbuilder.database.ado
Article #2358Re: DBText choosing changing what record I display
From: Lee
Date: Sat, 30 Aug 2003 07:57
Date: Sat, 30 Aug 2003 07:57
83 lines
3010 bytes
3010 bytes
Viatcheslav, Thanks, that worked great. I was wondering if I can have three DBText labels all displaying different records on the same table. Like: DBText1 = Record 1 DBText1 = Record 2 DBText1 = Record 3 Thanks for you help Lee "Viatcheslav V. Vassiliev" <support@oledbdirect.com> wrote in message news:3f4f120b$1@newsgroups.borland.com... > 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:
<3f5058da$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news-xfer2.atl.newshosting.com!63.218.45.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f4eff11@newsgroups.borland.com> <3f4f120b$1@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-30 01:08:33 PST From: "Lee" <gobroski@elltel.net> Newsgroups: borland.public.cppbuilder.database.ado References: <3f4eff11@newsgroups.borland.com> <3f4f120b$1@newsgroups.borland.com> Subject: Re: DBText choosing changing what record I display Date: Sat, 30 Aug 2003 00:57:19 -0700 Lines: 85 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: 12.18.161.26 Message-ID: <3f5058da$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062230234 12.18.161.26 (30 Aug 2003 00:57:14 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!news-xfer2.atl.newshosting.com!63.218.45.10.MISMATCH!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail