ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Export excel table to acess table using VBA Code (https://www.excelbanter.com/excel-programming/341571-export-excel-table-acess-table-using-vba-code.html)

Jof

Export excel table to acess table using VBA Code
 
I need to export data from excel into access. I cant link the file from
access, as the excel data is saved in a different location everytime.

I run a macro to format the data, and would like the VBA code to append
the data into an access table at the end of this formatting code.

I can import the files but cant automate it from access as the file
path is different everytime.

Any ideas?


K Dales[_2_]

Export excel table to acess table using VBA Code
 
You can use ADO to send an SQL command to append your Excel data to an Access
table. I have written a couple responses to other posts in the past week to
this same issue; if you do a search for Dales Access I think you will find
the info you need; if not let me know and I will post the info again for you.
--
- K Dales


"Jof" wrote:

I need to export data from excel into access. I cant link the file from
access, as the excel data is saved in a different location everytime.

I run a macro to format the data, and would like the VBA code to append
the data into an access table at the end of this formatting code.

I can import the files but cant automate it from access as the file
path is different everytime.

Any ideas?




All times are GMT +1. The time now is 01:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com