CRecordset
-
How can i retrieve GetRecordCount into CString? i want to retrieve the number of records! i have : CDatabase_Earth pEarth; and i want this : pEarth.GetRecordCount(); into this m_text.SetWindowText(.......); :)
Bravoone
-
How can i retrieve GetRecordCount into CString? i want to retrieve the number of records! i have : CDatabase_Earth pEarth; and i want this : pEarth.GetRecordCount(); into this m_text.SetWindowText(.......); :)
Bravoone
Bravoone_2006 wrote:
How can i retrieve GetRecordCount into CString?
Use "SELECT COUNT(*) FROM table_name" as your SQL statement. See here for more.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
How can i retrieve GetRecordCount into CString? i want to retrieve the number of records! i have : CDatabase_Earth pEarth; and i want this : pEarth.GetRecordCount(); into this m_text.SetWindowText(.......); :)
Bravoone
Why not get it into an int, then use CString::Format() to get it into the CString?