Solved

Export All Access Database Tables To Excel File

Posted on 2012-03-12
7
396 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.
0
Comment
Question by:baabaa_nl
  • 3
  • 2
  • 2
7 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37712496
<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
 

Author Comment

by:baabaa_nl
ID: 37713991
hi boag2000,

yes thats right, i need each table to be in its own sheet
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 250 total points
ID: 37714846
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:baabaa_nl
ID: 37717319
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
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 250 total points
ID: 37717789
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
 

Author Comment

by:baabaa_nl
ID: 37719142
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
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 37719572
You would need to do Interop for that. Use Application.Run method on the Access application object.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question