
Accessing versions of Access using VC++ & DAO
Hi All,
I'm inherited a fairly large application written in C++ and DAO (and other
technologies). It works fine with Access97 DBs. I've got to upgrade it to
be able to use Access2000.
The database is processed by a CDaoDatabase object, using its Open method
with one argument: the fully qualified name of the database. What I need is
a way to specify the DAO version.
I have done this using VBScript where the DB engine can be specified when
creating a DAO object --
I specified DAO.DBEngine.35 (for Access97) or .36 (for 2000).
To keep the app from getting more complicated by introducing scripting, I
need to specify the DB Engine in C++ terms.
Any suggestions would be appreciated.
Regards,
Richard