🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

DBText choosing changing what record I display

#2354
From: Lee
Date: Fri, 29 Aug 2003 07:21
47 lines
1796 bytes
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: <3f4eff11@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!167.206.3.103.MISMATCH!news3.optonline.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,ac159d18908241fd,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-08-29 00:33:07 PST
From: "Lee" <gobroski@elltel.net>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: DBText choosing changing what record I display
Date: Fri, 29 Aug 2003 00:21:56 -0700
Lines: 49
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: <3f4eff11@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1062141713 12.18.161.26 (29 Aug 2003 00:21:53 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!167.206.3.103.MISMATCH!news3.optonline.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail