User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Move data from ~1500 Excel files to Access Page [1]  
YOMAMA
Suspended
6218 Posts
user info
edit post

Looking for a quick way to move data from ~1500 files that all have the exact same structure into an access database. I have just started my Google quest into this but I know there are a few excel gurus here that have helped in the past so I figured it was worth a shot. Any ideas?

The structure of the files are very basic -
Row 1: header column - about 15 columns
Row 2: Yes, No, a number or short comment.

5/27/2008 12:56:36 PM

agentlion
All American
13936 Posts
user info
edit post

what's the structure in Access? One big table? Multiple tables with foreign keys?

5/27/2008 1:55:05 PM

YOMAMA
Suspended
6218 Posts
user info
edit post

I have not created it yet but it will be the exact same layout as the spreadsheet.

5/27/2008 2:07:49 PM

Wolfmarsh
What?
5975 Posts
user info
edit post

It would be very easy to write an app that would do this, I wrote one internally here to do this exact same thing, but I cant send it out since its internal.

5/27/2008 2:59:00 PM

YOMAMA
Suspended
6218 Posts
user info
edit post

Any pointers or recommended things to read up on?

5/27/2008 3:10:19 PM

Ernie
All American
45943 Posts
user info
edit post

You could do this very easily if you know any scripting language.

Here's a good start if you're familiar with Python: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440661

5/27/2008 3:13:50 PM

Noen
All American
31346 Posts
user info
edit post

uh you can do this with just VBA. seriously simple, create a data connection to your access DB, then write a super simple script to move the data

5/27/2008 3:40:35 PM

Ernie
All American
45943 Posts
user info
edit post

Or that. I know dick about VBA.

5/27/2008 3:42:49 PM

YOMAMA
Suspended
6218 Posts
user info
edit post

so Noen - if I do a bit of reading tonight you think I could pick up enough to pull this off?

Any sites you recommend I look into for a quick crash course?

5/27/2008 4:04:46 PM

LimpyNuts
All American
16859 Posts
user info
edit post

THIS IS BUILT INTO ACCESS! The data import function supports Excel spreadsheets! (and it can be called repeatedly for a number of different worksheets through VBA)

Creating a macro to connect to the database, generate the tables, and loop through the spreadsheets adding the data is easy, but it is also slow. It took several minutes for around 30,000 rows for a particular database I worked with in the past. A data import took all of about 10 seconds, but unfortunately I needed to process the data as I added it.

[Edited on May 27, 2008 at 4:23 PM. Reason : ]

5/27/2008 4:22:46 PM

Noen
All American
31346 Posts
user info
edit post

^also an excellent idea if you dont need to reformat anything

5/27/2008 4:45:47 PM

 Message Boards » Tech Talk » Move data from ~1500 Excel files to Access Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.