how to connect database
-
How to connect database.database is in exelsheet.
-
How to connect database.database is in exelsheet.
So which is it: reading from a database or an Excel file? You can use ODBC for both. You can also use Excel Automation for the latter. Are you using MFC?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
How to connect database.database is in exelsheet.
For database you can use of CDatabase class for excel see CSpreadSheet - A Class to Read and Write to Excel[^].
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
So which is it: reading from a database or an Excel file? You can use ODBC for both. You can also use Excel Automation for the latter. Are you using MFC?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
I am using MFC. hw to connect exelsheet as database while doing MFC project.
-
I am using MFC. hw to connect exelsheet as database while doing MFC project.
Supriyanka wrote:
hw to connect exelsheet as database while doing MFC project.
Have you tried ODBC with
CRecordset
andCDatabase
?"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
-
For database you can use of CDatabase class for excel see CSpreadSheet - A Class to Read and Write to Excel[^].
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
Which Database are you connect? you can used AdoConnect _ConnectionPtr * con; _RecordsetPtr * rec;
-
Which Database are you connect? you can used AdoConnect _ConnectionPtr * con; _RecordsetPtr * rec;
Thanks for your answer but it was not my question! :-D
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )