I want to export data from a table Access in Excel using vb6.0

D

diaExcel

I want to export data from a table Access using vb6.0 and ADO, can I do that?
and how?

thank you.
 
A

ArielZusya

Unfortunately I've only been coding in VBA since more recent versions. That
said, the way I do that in VBA now may have existed in version 6. So...
check out the help on DoCmd.TransferSpreadsheet which has the ability to
import or export. As for the ADO portion... again... not that familiar with
ADO programming. There is a note about linking rather than exporting using
ADO in the help for TransferSpreadsheet method in VBA 6.5. That note reads
as follows:

You can also use ActiveX Data Objects (ADO) to create a link by using the
ActiveConnection property for the Recordset object.

Anyhow... I hope all of that helps. Let me know if there is more I can do
to be of assistance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top