Re: CDatabase CRecordset - How to get the number of rows?
- From: "Roy Fine" <rlfine@xxxxxxxxxxxxxxxxx>
- Date: Sat, 11 Jun 2005 06:55:53 -0400
"David++" <David@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:63FB861B-E7A4-408C-A964-A4DD36A98B16@xxxxxxxxxxxxxxxx
> Hi Roy,
>
> This is the code I have so far -
>
> CRecordset rs(&db);
>
> rs.Open(CRecordset::forwardOnly,"SELECT * FROM
Records",CRecordset::readOnly);
>
NO! -- the SQL command should be "Select Count(*) FROM Recrds"
regards
Roy
.
- Follow-Ups:
- References:
- CDatabase CRecordset - How to get the number of rows?
- From: David++
- Re: CDatabase CRecordset - How to get the number of rows?
- From: Gert
- Re: CDatabase CRecordset - How to get the number of rows?
- From: David++
- Re: CDatabase CRecordset - How to get the number of rows?
- From: Roy Fine
- Re: CDatabase CRecordset - How to get the number of rows?
- From: David++
- Re: CDatabase CRecordset - How to get the number of rows?
- From: Roy Fine
- Re: CDatabase CRecordset - How to get the number of rows?
- From: David++
- CDatabase CRecordset - How to get the number of rows?
- Prev by Date: Re: Sizing Text
- Next by Date: Re: derive from CWnd?
- Previous by thread: Re: CDatabase CRecordset - How to get the number of rows?
- Next by thread: Re: CDatabase CRecordset - How to get the number of rows?
- Index(es):
Relevant Pages
|