Click to See Complete Forum and Search --> : Archive data in MS-Access from VC++


dharnidhar
April 12th, 1999, 06:10 AM
Hello,
I would like to export and import data to and from formatted files from an MS-Access database. As far as i know there are two ways of doing it in Access viz. using Macros and VBA. But how can I do it from a client written in VC++. I would like to export data selectively based on a where clause.
Help Please !!

ThanX and Rgds

Fraser
April 12th, 1999, 06:30 AM
If you are using MFC, then you can manipulate an Access database through DAO classes provided for you.

Check the documentation for classes:

CDaoDatabase
CDaoRecordset
CDaoQuerydef
etc.

Hope this helps.

April 14th, 1999, 10:00 AM
Please send mail to me..
And I will send a sample program.
This program used dao( in order to import and export data from MS-ACCESS ).
e-mail Addess is belowed :
emperor@netian.com
I will wait for yours.

April 15th, 1999, 10:20 AM
Why not use ADO? Ado works fine when connecting to0 MS-Access database. Furthermore this is the technology Microsoft wants us to use because it belongs to the OLE-DB group...