Excel Table - How to Append to Access Database Using VBA

mark2323

New Member
Joined
Mar 25, 2020
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
I have an Excel Sheet that holds a Table (Table named "PST_2" ) that I need to append to an Access Database (DB named "STATS.accdb"). I need to do this while the user has Excel open, and without opening the Access application, as some users may not have it. I know how to initiate appending from Excel to Access while using Access. But I'm having trouble finding clear info online of how to initiate the opposite direction with a macro/VBA from within Excel, without the user having to open Access.

Here are the filenames and paths:

Excel File Name: TDCD_GAME.xlsm
Excel File Path: C:\\TDCB\TDCB_GAME.xlsm
Excel Sheet: PSTLD
Excel Table: Named PST_2, actual range on PSTLD sheet will vary as it's dynamic
Access File Name: Stats.accdb
Access File Path: C:\\TDCB\Stats\stats.accdb
Access DB Table to Append: PST

* All headers in both the Excel Table ("PSTLD") and Access Table ("PST") match exactly *

Any input would be greatly appreciated!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Perhaps look here...

I do not know for sure if any Excel sub run by an Excel user can push data to Access, but I think so. It ought to be the application that moves the data to Access, and AFAIK, the Excel user does not have to have Access installed.
 
Upvote 0

Forum statistics

Threads
1,223,878
Messages
6,175,141
Members
452,615
Latest member
bogeys2birdies

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