Solved

Access VBA - errors manipulating a linked spreadsheet

Posted on 2011-03-08
5
377 Views
Last Modified: 2012-05-11
Hi

I have an Access database that generates reports in Excel using charts. I had to do this because the Access charting system wasn't working as well. The Excel spreadsheet has tables that are linked to my Access tables. These Excel tables are in turn linked to Pivot Tables in the spreadsheet which are linked to the final charts. I am trying to use VBA to refresh these links and I am getting errors because the Excel spreadsheet cannot be opened at the same time as the Access database. Not sure how to get around this.
0
Comment
Question by:murbro
  • 3
  • 2
5 Comments
 
LVL 15

Accepted Solution

by:
Simon Ball earned 500 total points
ID: 35081206
I get a smiliar problem with access databases running mail merges in word through automation.

to get around it, i put the marge tables into a 2nd mdb, then linked them back to the main db.

that way, both the access mdb running the code,  and excel, can link to them at the same time.
0
 
LVL 15

Expert Comment

by:Simon Ball
ID: 35081230
you'll have to relink excel to look in the new "datastore"
0
 

Author Closing Comment

by:murbro
ID: 35085451
Thanks very much. Great answer!
0
 
LVL 15

Expert Comment

by:Simon Ball
ID: 35093022
My pleasure.  Did it all work ok then?
0
 

Author Comment

by:murbro
ID: 35093475
Worked perfectly. I used make table queries, which made tables into the additional database.
I linked my spreadsheet to this database and refreshed from my master database. Appreciate the help.
Was causing a lot of trouble. Thanks very much!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now