?
Solved

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

Posted on 2013-12-27
3
Medium Priority
?
643 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 58
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 40

Accepted Solution

by:
PatHartman earned 2000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

850 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