BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Connect to MS Access database function

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop)
View previous topic :: View next topic  
Author Message
Kent
Guest





PostPosted: Wed Oct 04, 2006 8:10 am    Post subject: Connect to MS Access database function Reply with quote



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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.