Click here to Skip to main content
15,914,409 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ADO: how can u access the number of records in a given table again? Pin
devvvy21-Nov-02 17:13
devvvy21-Nov-02 17:13 
GeneralRe: ADO: how can u access the number of records in a given table again? Pin
Christian Graus21-Nov-02 17:16
protectorChristian Graus21-Nov-02 17:16 
GeneralRe: ADO: how can u access the number of records in a given table again? Pin
devvvy21-Nov-02 17:18
devvvy21-Nov-02 17:18 
GeneralRe: ADO: how can u access the number of records in a given table again? Pin
Christian Graus21-Nov-02 17:22
protectorChristian Graus21-Nov-02 17:22 
GeneralRe: ADO: how can u access the number of records in a given table again? Pin
devvvy21-Nov-02 17:26
devvvy21-Nov-02 17:26 
GeneralRe: ADO: how can u access the number of records in a given table again? Pin
Christian Graus21-Nov-02 17:35
protectorChristian Graus21-Nov-02 17:35 
GeneralRe: ADO: how can u access the number of records in a given table again? Pin
Jon Hulatt21-Nov-02 23:27
Jon Hulatt21-Nov-02 23:27 
GeneralRe: ADO: how can u access the number of records in a given table again? Pin
Nick Parker21-Nov-02 17:35
protectorNick Parker21-Nov-02 17:35 
Christian Graus wrote:
select count(*) from tblMyTable.

Actually ADO exposes a property called RecordCount once you have returned a recordset, so you don't actually have to do a "SELECT COUNT(*) FROM [YourTable] WHERE...". You will need to set the CursorType to 3 (which represnts a static cursor). Smile | :)

Nick Parker

May your glass be ever full.
May the roof over your head be always strong.
And may you be in heaven half an hour before the devil knows you’re dead. - Irish Blessing



GeneralRe: ADO: how can u access the number of records in a given table again? Pin
Christian Graus21-Nov-02 17:37
protectorChristian Graus21-Nov-02 17:37 
GeneralRe: ADO: how can u access the number of records in a given table again? Pin
Nick Parker21-Nov-02 17:40
protectorNick Parker21-Nov-02 17:40 
GeneralRe: ADO: how can u access the number of records in a given table again? Pin
Christian Graus21-Nov-02 17:45
protectorChristian Graus21-Nov-02 17:45 
Questionwhy "INT" and not "int" again? Pin
devvvy21-Nov-02 16:22
devvvy21-Nov-02 16:22 
AnswerRe: why "INT" and not "int" again? Pin
Christian Graus21-Nov-02 16:42
protectorChristian Graus21-Nov-02 16:42 
QuestionHow can I display a "save" dialog like GetFileNameFromBrowse does? Pin
Mario M21-Nov-02 16:04
Mario M21-Nov-02 16:04 
GeneralCListCtrl Report-style subitem centering problem Pin
IGx8921-Nov-02 15:52
IGx8921-Nov-02 15:52 
GeneralRe: CListCtrl Report-style subitem centering problem Pin
Gary R. Wheeler23-Nov-02 4:26
Gary R. Wheeler23-Nov-02 4:26 
GeneralMemory leaks Pin
AnTri21-Nov-02 12:02
AnTri21-Nov-02 12:02 
GeneralRe: Memory leaks Pin
Christian Graus21-Nov-02 12:16
protectorChristian Graus21-Nov-02 12:16 
GeneralRe: Memory leaks Pin
AnTri21-Nov-02 21:03
AnTri21-Nov-02 21:03 
GeneralRe: Memory leaks Pin
Christian Graus21-Nov-02 21:14
protectorChristian Graus21-Nov-02 21:14 
GeneralRe: Memory leaks Pin
AnTri21-Nov-02 21:16
AnTri21-Nov-02 21:16 
GeneralRe: Memory leaks Pin
Alexinuk22-Nov-02 0:38
Alexinuk22-Nov-02 0:38 
GeneralRe: Memory leaks Pin
AnTri22-Nov-02 0:55
AnTri22-Nov-02 0:55 
GeneralRe: Memory leaks Pin
Alexinuk22-Nov-02 1:05
Alexinuk22-Nov-02 1:05 
GeneralChange control and make it visible Pin
Dennis L21-Nov-02 11:50
Dennis L21-Nov-02 11:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.