• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 422
  • Last Modified:

Export All Access Database Tables To Excel File

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.
0
baabaa_nl
Asked:
baabaa_nl
  • 3
  • 2
  • 2
2 Solutions
 
Jeffrey CoachmanMIS LiasonCommented:
<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?
0
 
baabaa_nlAuthor Commented:
hi boag2000,

yes thats right, i need each table to be in its own sheet
0
 
Jeffrey CoachmanMIS LiasonCommented:
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
baabaa_nlAuthor 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.
0
 
CodeCruiserCommented:
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
0
 
baabaa_nlAuthor 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.
0
 
CodeCruiserCommented:
You would need to do Interop for that. Use Application.Run method on the Access application object.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now