简体   繁体   中英

Excel VBA, import from access tables to worksheets

I'm looking to understand how to accomplish a task I've been set at work where i have quite an odd situation in terms of the data being entered and how that is maintained over the year.

Scenario: I have an Office 2013 Access Database (stored in a network shared drive) which contains several tables (example names below)

  • table1MD (master data)
  • table2 (lookup table)
  • table3 (lookup table)
  • table4 (lookup table)
  • table5 (lookup table) etc...

Every quarter i need to upload data into table1MD and would like to ensure the data going into the table is consistent with the lookup tables in the database.

My plan: To construct an excel workbook that you can get your new quarterly data ready in, pull in the access database table info then merge this altogether ready to be uploaded into the database.

My Question to Stack Overflow users: Using Excel VBA, what is the best way to download in a single click all my database tables into its respective Worksheet.

ie table1MD (from access) would download into the table1MD worksheet and vice versa

At this point i'm not concerned with getting the information back into Access, i'm merely looking for assistance on the best/easiest way to achieve a simple download of a database into Excel so i can use that information.

My knowledge with VBA is extremely new, I come from a HTML/CSS background so picking things up as i go along and i can't find anything that works hence i'm reaching out to Stack Overflow users.

Please let me know if there's anything else you need from me.

I don't think so You need to use VBA for it. There Excel solution to get data from Access to Excel. Look for Data Sources for Excel.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM