Specification : I am using ODBC as my interface, visual c++ to develope my front end application and MS sql server as my database.
i'm having trouble trying to retrive data from the last column of my table.
CDatabase* theDb = new CDatabase;
theDb->OpenEx("DSN=local"
CRecordset* theRec = new CRecordset(theDb);
theRec->Open(AFX_DB_USE_DEFAULT_TYPE,"select STYLE_ID from STYLES",CRecordset::readOnly);
//Tablename is STYLE_ID, column name is STYLES
if(theRec->IsEOF()!=0)
theRec->MoveLast();
//now that i move to the last record what CRecordset do i use to retreive the data?
i'm having trouble trying to retrive data from the last column of my table.
CDatabase* theDb = new CDatabase;
theDb->OpenEx("DSN=local"
CRecordset* theRec = new CRecordset(theDb);
theRec->Open(AFX_DB_USE_DEFAULT_TYPE,"select STYLE_ID from STYLES",CRecordset::readOnly);
//Tablename is STYLE_ID, column name is STYLES
if(theRec->IsEOF()!=0)
theRec->MoveLast();
//now that i move to the last record what CRecordset do i use to retreive the data?