Hello. I have 2 questions which are unfortunetly both important for my application.
1)
I was recently surprised to see that my Visual c++ 6 doesnt work with Access2000. I searched the web, and found that the problem is because I dont have the upgraded Dao 3.6. So I downloaded the 130 mb service pack4, followed the installation instructions, built the dll that I was asked to build in the readme file, but nothing happened. I still can't open jet 4.0(access 2000 uses this engine) database, because c++ doesnt recognize it. Actually nothing has changed. Maybe I missed something. Any help would be highly appreciated.
2)
I was planning to retrieve a record using a SQL query.
That was the code I used:
------------------------------------------------------------------------------------
CString MySql = "SELECT * FROM Departments WHERE ManagerID = 'JENKINS001'";
CDaoRecordSet Managers(MyDatabase);
Managers.Open(dbOpenDynaset, MySql);
------------------------------------------------------------------------------------
Great, now I have a record in the Departments table where the ManagerID field is JENKINS001. But now, how can I retrieve the record, work with it, see its fields. I want to output one of its fields, compare it with another string. How can I do this? if GetFieldValue returns a "COleVariant" and not "CString"?
Thank you.
1)
I was recently surprised to see that my Visual c++ 6 doesnt work with Access2000. I searched the web, and found that the problem is because I dont have the upgraded Dao 3.6. So I downloaded the 130 mb service pack4, followed the installation instructions, built the dll that I was asked to build in the readme file, but nothing happened. I still can't open jet 4.0(access 2000 uses this engine) database, because c++ doesnt recognize it. Actually nothing has changed. Maybe I missed something. Any help would be highly appreciated.
2)
I was planning to retrieve a record using a SQL query.
That was the code I used:
------------------------------------------------------------------------------------
CString MySql = "SELECT * FROM Departments WHERE ManagerID = 'JENKINS001'";
CDaoRecordSet Managers(MyDatabase);
Managers.Open(dbOpenDynaset, MySql);
------------------------------------------------------------------------------------
Great, now I have a record in the Departments table where the ManagerID field is JENKINS001. But now, how can I retrieve the record, work with it, see its fields. I want to output one of its fields, compare it with another string. How can I do this? if GetFieldValue returns a "COleVariant" and not "CString"?
Thank you.