Article View: borland.public.cppbuilder.database.ado
Article #2359This is how I am displaying one entry
From: Lee
Date: Sat, 30 Aug 2003 08:00
Date: Sat, 30 Aug 2003 08:00
81 lines
2817 bytes
2817 bytes
I forgot this part, sorry //last names DBText1->ADODataSource = ModData->TDataSource; //First Names DBText2->ADODataSource = ModData->TDataSource; Thanks again 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:
<3f5059b4@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> <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:35 PST From: "Lee" <gobroski@elltel.net> Newsgroups: borland.public.cppbuilder.database.ado References: <3f4eff11@newsgroups.borland.com> <3f4f120b$1@newsgroups.borland.com> Subject: This is how I am displaying one entry Date: Sat, 30 Aug 2003 01:00:56 -0700 Lines: 83 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: <3f5059b4@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1062230452 12.18.161.26 (30 Aug 2003 01:00:52 -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