
using access databases by using ODBC
Quote:
> I don't know why you're using ODBC, but I can only assume its for future
> migration to a different backend.
> A good, although not optimal, solution if this is your scenario is to
> encapsulate your data access in well designed classes( or functions that
> return recordsets) using DAO. Then in the future, just modify the data
> access functions without touching the rest of your code. Has worked for me
> many times.
> Stuart Mitchell
> Owner and CEO
> Aquarius Itech
> Brisbane Australia
> > what my problem is I want to reach to Access database from data control
> > by using ODBC...I had a few tries but was unsuccessful...they were ended
> > with the message telling me:
> > "you can not use ODBC to import from, expert to or link an external MS
> > Access or ISAM database table to your database!"
The other method that I have used is to use linked ODBC tables in the
mdb file, and just use DAO when accessing these table names. Then you
can also have a parallel set of tables that are native access, and use a
renaming procedure to rename the tables from native access to the linked
tables, or vice versa. While DAO is not the optimal method for access to
ODBC, this does give you the flexibility to go between straight Access
tables or ODBC linked tables with just a rename of the tables in the MDB
file. This also works for any querydefs defined against these table
names. The querydefs can remain the same because all they care about
are the table names.
--
___________________________________________________________
phone - 513-576-2629 fax - 513-576-2843
"Preach the gospel at all times -
if necessary, use words." St. Francis