Login|Contact Us
Question and Answer

Programming

Ask a Programming Question, Get an Answer ASAP!

  • Ask A Question
  • Browse Answers
  • Meet The Experts
  • How JustAnswer Works

I have a Access database of 1 million records that I need to

 
Tech_Ben's Avatar
  • Answered by:Tech_Ben
  • Computer Software Engineer
  • Positive Feedback: 98.3 %
  • Accepted Answers: 243
Verified Expert
in Programming

Recent Feedback

Positive
I found one on amazon at a really good price. Thanks for the info.
Positive
this was a top job.... A+++++
Positive
Great Thanks
Positive
Techie_Ben did a great job answering my questions. Very professional and kind....
Positive
Great service, dealt with multiple follow up questions. Thanks.
Positive
excellent will ask for him again
Positive
Wonderful. He followed up and it worked like a charm. Thanks a million
Positive
Ben gives very complete answers.
Positive
Very complete answers

Customer Question

Picture

I have a Access database of 1 million records that I need to export to Excel/Text format in smaller files/chucks of about 25K each. What is the best/fastest way to do this using Access? (note: I also have the same 1 million file in Excel too)

Submitted: 1591 days ago.
Category: Programming
Value: $9
Status: CLOSED
Picture
Expert:  Tech_Ben replied 1590 days and 22 hours ago.

HiCustomer

Thank you for the question. In order to do this, you can use MS Access "export" function. The easiest way to do this would be to select your range (25,000 at a time), and click export. There will be an arrow next to the export button that allows you to export the selected range. You will have to do this 40 times in order to get all 1,000,000 records, however it will not take too long. You could also write a VBA script to loop through the range in the table 25,000 records at a time until the end of the table is reached, however it will take longer to write the script than it would to do this manually. The manual method would consist of the following:

Back up your database by saving the MDB file to another folder
Open table
Select first 25,000 rows
Click File -> Export
Choose XLS (Excel 97 - 2003) from the dropdown where it says "Save as Type"
Enter your file name
Click the checkbox that says "Save Formatted"
Click the small arrow next to "Export All", and click "Save Selection", which will save only the records you have selected.
Select next 25,000 rows in table, and repeat until you are finished.

Hope this helps!

Please accept my answer if you feel my assistance was helpful.

Picture
Customer replied 1590 days and 20 hours ago.

Opps. I meant a solution that was not manual :)
For example, is there a way to run a wizard or table in access that only shows 1 to 25,000. Then, highlight all, copy or export.
Then repeat - 25,0001 to 50,000 etc
Sure seems there should be a way to only "show" a specific range?

Picture
Expert:  Tech_Ben replied 1590 days and 20 hours ago.

Thanks for the reply. Unfortunately, there is nothing like this built in to MS Access, mainly because it is a fairly low priority use-case. MS Access provides an interface to the Microsoft API's, so you could use MS Access API code (VBA) to perform this operation if you are so inclined. Just like MS Word or Excel, you can select a range of records from an MS Excel table. Using VBA programming appears to be the only way to do this. Hope this helps,

Picture
Customer replied 1590 days and 10 hours ago.

Hmmm. You said "range of records" using excel. So I can do it using Excel instead?

Accepted Answer

Picture
Expert:  Tech_Ben replied 1590 days and 9 hours ago.

Yes, you can do the same in Excel however will likely still need to do VBA scripting in order to get these out of the single file. I searched for some tools to split excel files, however did not see anything useful.

Expert TypeComputer Software Engineer
Category: Programming
Pos. Feedback: 98.3 %
Accepts: 243
Answered: 12/2/2008

Experience: Years of professional experience in C++, Visual Basic, .NET, Java, DB2, Oracle, SQL Server, PL/SQL

Ask this Expert a Question >
 
Tweet

3 Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
C ProgrammingDecode LabYour assignment is to write a C 4/9/2013
Reference the following instructions to assist you when completing 4/8/2013
First you will present the pseudo code with all the modules 4/8/2013
NA-112 4/8/2013
The first programming project involves completing a program 4/8/2013
RA-201 4/7/2013
This is my final exam for my c programming class. It is due 4/7/2013
Program Description Your program will display (see the sample 4/6/2013
RA-211 4/3/2013
ra-614 4/2/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

In The News

Nbc
Washington Post
New York Times
Cnn
Learn More

How It Works

  • Ask an Expert
  • Get a Professional Answer
  • Ask Followup Questions
  • 100% Satisfaction Guarantee
Learn More
close
Find Expert answers related to your question.
Sign up using email
We will never post anything without your permission.
Already have an account? Sign in

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.
204 Programmers are Online Now
Type Your Programming Question Here...
characters left:
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Truste
Contact Us | Terms of Service | Privacy & Security | About Us
© 2003-2013 JustAnswer LLC