We help IT Professionals succeed at work.

Export All Access Database Tables To Excel File

Medium Priority
439 Views
Last Modified: 2012-08-14
I need a vb.net code to export all the access database tables to an excel file.

I do not want to used the dataset. because the database file is so huge.

so it is possible to directly export access database tables and its data directly to excel file

Thanks in advance.
Comment
Watch Question

Jeffrey CoachmanMIS Liason
CERTIFIED EXPERT
Most Valuable Expert 2012

Commented:
<I do not want to used the dataset. because the database file is so huge.>
Can you clearly explain what you mean by this?

Do you want each table to be it's own sheet?

Author

Commented:
hi boag2000,

yes thats right, i need each table to be in its own sheet
MIS Liason
CERTIFIED EXPERT
Most Valuable Expert 2012
Commented:

Author

Commented:
Well that was a VBA code. But i am using VB.Net.

Can you please give me the code that is equivalent to VB.net or a code that does the similar function.

Thanks In Advance.
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2014
Commented:
You can put that code in a module in access db and then call it from VB.NET

another approach shown here

http://bytes.com/topic/visual-basic-net/answers/336747-export-access-file-excel-vb-net

Author

Commented:
Thank you CodeCruiser, i will try the code from the page you sent me.

Can you please give me the code to call the module in access from vb.net.

Thanks in advance guys.
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2014

Commented:
You would need to do Interop for that. Use Application.Run method on the Access application object.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.