Fields and Tables of the DataBase Created from VB5.0
Posted on 1998-09-09
I have created a database from VB5.0.
I want to ask whether I can open this database from
Visual C++ 5.0 wihtout knowing the name of the fields and table of the database.
Because I find if I use this function CDaoRecordSet::SetFieldValue() or CDaoRecordSet::GetFieldValue()
I need to know the field of the database
eg. CDaoRecordset *m_pRSDlg;
m_pRSDlg->SetFieldValue(_T("Name of the field"),"the input data to the database");
Also, when I try to open the database, I also need to know
the name of the table:
eg. m_pRSDlg->Open(dbOpenDynaset,_T("Select * from [Users]");
Thus, if I have a database not created by me, how can I
open it and do some data modification on it?
P.S. Can it be done on using the class CDaoRecordSet