Kent Guest
|
Posted: Wed Oct 04, 2006 8:10 am Post subject: Connect to MS Access database function |
|
|
I need a function to connect to an Access database file without
invoking Access itself. In pseudocode, it would resemble something
like this:
data=func(databasefilename,tablename,recordname,fieldname);
The returned data would be the field's contents if any.
I've spent several hours trying to educate myself on the subject (I'm
a complete newbie on the
subject of databases and COM) and cannot find adaptable example code
to get started (using
Builder 3.0 Pro).
I welcome examples using any or all of these methods: ODBC, ADO, DAO,
or BDE.
I am aware that Builder 3 has a bug importing type libraries and that
TLibImp can be used to
import correctly. Even then, I don't know enough about COM to get
started.
FWIW, I do have Visual Studio 6 available (though I have never used
it) if it would be more
feasible/possible to build a VC dll to accomplish my objective. Can
this be done?
Thanks,
Kent |
|