Multiple Excel import to Access

  • Thread starter Thread starter Ernesto
  • Start date Start date
E

Ernesto

Hello all,
I'm a newbee on this site. And I have limited code writing experience.
But I've been assigned a task that I think you all could help me out
with.

I need to achieve some data. The data will be saved in Excel files. I
need to import that data into Access. Here's what i was thinking:
1. Save in one central location.
2. Have access import the files from there automatically.

is that possible? Here is the descbrition of the files. Excel file will
have contain an "Input" tab where user input data. Then I have a Macro
which creates a flat file which I would like to upload to Access. The
thing is that there may be a varity of files. (LOTS!!) With different
names. Is there any way to automate that on a monthly basis?

thanks!
 
If you want to automate the process, you will need to write some code. While
we may not do that for you, we can help guide you through the process.

What you need to do is pick a directory and put your files in it. Loop
through that directory, checking for the existance of Excel files. When you
find them, begin using TransferSpreadsheet to copy the data to the relevant
table in your database. Once your code is satisfied that the data is there,
you can delete the spreadsheet and move to the next.

You can also use either TransferSpreadsheet or OutputTo to move the data
back into Excel for purposes of distribution.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access
 
well.. you could use Access MACROs right??

that wouldn't involve coding.

I love macros.
 
Back
Top