want to automate excel import to access

SKV

Active Member
Joined
Jan 7, 2009
Messages
257
I have loads of excel files to be uploaded in Access. Each file has the same field format and have 2 tabs (again with the same format)

I want to automate this import process such that while importing this data with all fields to one master table, it should capture the 3 more fields

1. Time it is uploaded
2. File Name
3. Tab Name

Can you please guide as how should I automate this process such that anytime some one drops a file in my folder, the file should automatically upload in my database or at most with one click.

Assuming all files have same file structure.

Thanks
Sachin
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Do the two sheets in each book always have the same name?
And how do you want to deal with files that have already been imported?

Denis
 
Upvote 0
Hi SydneyGeek,

I was waiting for you to look at this and I know you give a valuable feedback like always.

To answer your questions - the files are yest not imported. The files and tab may have different names in future. So to mitigate this complexity and refer back to the original file, I want that whenever a file named abc.xls with tabA and TabB and another file with named xyz.xls with TabX and TabY, ALL TABs have same file/field structure say fields c1, c2, c3 ....., then all the data from these files should be appended to a table in the following field structure that
File Name ; Tab Name; Date Import; C1 ; C2; C3........


I hope you got what I want. let me know if you need more clarification.

I look forward to hear from you.

Regards
SKV






Do the two sheets in each book always have the same name?
And how do you want to deal with files that have already been imported?

Denis
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top