Solved

Live Link Between Excel and Access

Posted on 2013-10-25
10
956 Views
Last Modified: 2013-11-06
Experts.

I have an existing access database where the user would like a couple fields to populate from data in an excel document. Then when the spreadsheet is updated Access would in turn have the same live update.

I've never done this before and am looking around to see if I can find someone who has done something similar. I'm not having any luck.

Any suggestions?
0
Comment
Question by:acramer_dominium
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 50

Expert Comment

by:Gustav Brock
ID: 39601691
Attach/link the Excel worksheet or range as a table and read data.
Delete the linked file or close the Access application to allow the Excel file to be updated.
Update the Excel file.
Reattach the Excel worksheet or range or reopen the Access application. Read the updated data.

/gustav
0
 
LVL 61

Expert Comment

by:mbizup
ID: 39601881
You can't have "live updates"/ links between Access and Excel, with instantaneous updates like you are describing - comparable to linked access tables.

The reason for that was a lawsuit years ago:
http://www.theregister.co.uk/2006/02/07/microsoft_office_access_infringement/
0
 
LVL 50

Expert Comment

by:Gustav Brock
ID: 39602494
That was the other way around - update Excel from Access.

Here Excel is updated - but that cannot happen if the Excel "table" was live in Access because that locks the Excel file.

The only option is to open the file in Excel, then open the linked table in Access.
Now you can update and save the Excel worksheet - and refresh (if still open) or reopen the linked table in Access.
If you close the worksheet, you have to first to close the table in Access, open the worksheet, then reopen the table in Access.

/gustav
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:acramer_dominium
ID: 39605956
Unfortunate for us, but good to know you can't live link to an Excel file in Access. We will try to find another alternative.

Thank you for all the feedback.
0
 
LVL 50

Expert Comment

by:Gustav Brock
ID: 39606005
> you can't live link to an Excel file in Access

That's not what I wrote. Using the described sequence, you can.

/gustav
0
 

Author Comment

by:acramer_dominium
ID: 39609023
You stated there would be locked table issues and if I have anywhere from 1 user to 50 users with the table open that could create major issues.
0
 
LVL 50

Expert Comment

by:Gustav Brock
ID: 39609109
You didn't try, I guess.
So:

Open the file in Excel, then open the linked table in Access.
Now you can update the Excel worksheet (a save is not needed) - and refresh (if still open) or reopen the linked table in Access.
The refresh in Access may even not be needed.

Let one more user open the linked table in Access.
You can still update the Excel worksheet - and refresh (if still open) or reopen the linked table in Access.

If you close the worksheet, you have to first to close the table in Access (all users), open the worksheet, then reopen the table in Access.

That said, if at all possible, I would find another route.

/gustav
0
 

Accepted Solution

by:
acramer_dominium earned 0 total points
ID: 39617595
Parts of it worked. I was able to open the spreadsheet and the linked table. When I made a change to the spreadsheet it automatically updated the linked table. When I closed the spreadsheet errors started popping up in the linked table in access. We also have a .mdb and the spreadsheets are .xlsx which won't work together.

With the number of users and the complexity of this, I think I will tell them we need to go another direction.

Thank you for your help!
0
 
LVL 50

Expert Comment

by:Gustav Brock
ID: 39617969
The solution is to not close the worksheet. That's all that is needed.

/gustav
0
 

Author Closing Comment

by:acramer_dominium
ID: 39626850
No solution was found.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

696 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