Automate Export of Data to an Access Table

KniteMare

Board Regular
Joined
Mar 4, 2002
Messages
238
I put together a little table for one of my LAN based facilities to track their Overtime Savings as compared to each of their individual units. It works great.

What I would like to do is to export the data on a weekly basis to Access. I set up an access table to recieve the data and I can get it all to work just fine except I want the users to just click on a menu item and have the export take place in the background.

I know how to create on the fly menus and get them to accecpt commands from Excel Macros so that is not an issue.

I know how to share data in Excel from Workbook to workbook, closed or open. I'm sure it can be done Excel to Access I just can not for the life of me find anything to jumpstart me in the right direction in either application's help files. Anybody out there linking their Excel data to Access?

Yours in EXCELent Frustration
KniteMare
 
Thanks for looking at what little I had, Nate.

After pondering over how to go about my task, I ended up taking a much simpler route.

I had Excel to run an Access TransferSpreadsheet macro; which brought in the data I needed.

In Excel:
Code:
    Dim A As Object
    Set A = CreateObject("Access.Application")
    
    A.Visible = False
    A.OpenCurrentDatabase ("M:\DRD\Callables\Callables.mdb")
    A.DoCmd.RunMacro "Clear and Close DB"

-Mike
 
Upvote 0
You are welcome. :)

On an Open Workbook? When you close Excel is the Excel.exe process terminated in your task manager (which version of Office are you using)? ;)
 
Upvote 0

Forum statistics

Threads
1,226,841
Messages
6,193,285
Members
453,788
Latest member
drcharle

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