Solved

MS Access 2013:  Control Button to Export 3 Tables to Excel

Posted on 2013-12-27
3
610 Views
Last Modified: 2013-12-27
I’m sorry for asking so many questions, but this is very close to being the last one.

I have an Access 2013 Database with 3 Tables.  I also have a form with a Control Button (‘Finalize’).  What I would like to happen is that when this Control Button is clicked, all 3 Tables get exported to select, pre-saved (but blank) Excel spreadsheets:

Table1 is exported to Excel Dump1  (C:\Users\Matt\Desktop\WUCAINS Folder\Excel Dump1.xlsx)
Table2 is exported to Excel Dump2  (C:\Users\Matt\Desktop\WUCAINS Folder\Excel Dump2.xlsx)      
Table3 is exported to Excel Dump3  (C:\Users\Matt\Desktop\WUCAINS Folder\Excel Dump3.xlsx)

The Excel Spreadsheets don’t have to open, but what I want is—for every time data is exported to these spreadsheets, the new data simply over-writes any existing data that may exist there and the spreadsheet is saved.

Finally, I have another 3 Excel Spreadsheets (pre-saved) that have formulas tied to the first 3:

Excel Dump1  is tied to Excel Update1  (C:\Users\Matt\Desktop\WUCAINS Folder\Excel Update1.xlsx)
Excel Dump2 is tied to Excel Update 2        (C:\Users\Matt\Desktop\WUCAINS Folder\Excel Update2.xlsx)      
Excel Dump 3 is tied to Excel Update3  (C:\Users\Matt\Desktop\WUCAINS Folder\Excel Update3.xlsx)

Again, these Excel Spreadsheets don’t have to open, but what I want is—for every time Access exports data to the first series of Spreadsheets, the 2nd Series of Spreadsheets also gets automatically updated with the new information exported into the 1st Series of Spreadsheets (the formulas within the 2nd Series of Spreadsheets are simply subject to the new data just exported into the1st Series of Spreadsheets), and these Spreadsheets are saved.

Can anyone give me any codes to make this happen?  Thank you so much for your help.
WUCAINSMaster.accdb
0
Comment
Question by:mdstalla
3 Comments
 
LVL 57
ID: 39742718
<< I?m sorry for asking so many questions, but this is very close to being the last one.>>

 Let's hope not; questions are what everyone lives for on EE!

Jim.
0
 
LVL 36

Accepted Solution

by:
PatHartman earned 500 total points
ID: 39742779
This sounds a lot like your other questions.  Did you use TransferSpreadsheet to export the spreadsheets in your other question?   I'm pretty sure I posted an example.

The second three spreadsheets should be set to refresh when they open.  You don't do that from Access.  You do it in Excel.
0
 

Author Closing Comment

by:mdstalla
ID: 39742939
Yup, that was simple.  Thanks for the guidance Pat.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question