+ Reply to Thread
Results 1 to 6 of 6

Excel file linked to access database

  1. #1
    Registered User
    Join Date
    07-10-2009
    Location
    Middlesex, England
    MS-Off Ver
    Excel 2000
    Posts
    3

    Thumbs up Excel file linked to access database

    Hi there

    I have created a 'price list' database in ACCESS. Then in EXCEL I created a pivot table which retrieves data from one of the database queries (the query was saved as a .dqy file).

    I emailed the file containing the pivot table to a colleague who is on the same server. He saved the excel file on he desktop & renamed it.

    When I update the databse file on a shared public drive on the server, he is able to 'refresh' his desktop file successfully !!

    How does this work??? How does it keep the link???

    Many thanks - a response is greatly appreciated
    Si
    Last edited by simon pitt; 07-15-2009 at 10:08 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Excel file linked to access database

    Why would the name of the Excel file make any difference to the Access query or pivot table source data/path?

  3. #3
    Registered User
    Join Date
    05-31-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: Excel file linked to access database

    I also think the file name shouldn't matter. It would when when you would change the name of the source file (access database)
    And it works because the link in the excel pivot table, is to the location where you put the database file on shared public drive, right ? (you were not clear with the steps how you did it)

  4. #4
    Registered User
    Join Date
    07-10-2009
    Location
    Middlesex, England
    MS-Off Ver
    Excel 2000
    Posts
    3

    Question Re: Excel file linked to access database

    Hi there

    thanks to you both for the replies.

    yes you're right the name of the excel file won't make any difference.

    Let me rephrase things:

    i created an access database (product price list) on a shared drive on our server. I created a query in the same access database which gives me product prices. in excel again on the shared public drive (same folder as the access databse) i created a pivot table which uses the access query which was saved as a .dqy file (ODBC query file).

    I copied the same excel file onto my desktop (not a short cut). Every time I make changes to the access databse (add new product prices) on the shared public drive - these changes feed through to my desktop excel file when refreshed.

    How does this work? Is it because everytime the desktop file is refreshed, the ODBC query file retrieves the changes from the public drive database (as this is where the database sits??) And will this only work for files on the same server??? If I emailed the file to someone externally, surely it wouldn't retrieve the updates when refreshed???

    thanks again for your help
    Simon

  5. #5
    Registered User
    Join Date
    05-31-2009
    Location
    Europe
    MS-Off Ver
    Excel 2003
    Posts
    47

    Re: Excel file linked to access database

    Yes so it looks like you answered yourself: the ODBC query knows the exact location of the file. And it won't work if not on the same network then.

    So it's smarter then excel which does not keep the location. I noticed if you have the linked files in the same folder and move/copy them together it will work then.

  6. #6
    Registered User
    Join Date
    07-10-2009
    Location
    Middlesex, England
    MS-Off Ver
    Excel 2000
    Posts
    3

    Smile Re: Excel file linked to access database

    thanks for confirming this - your help is much appreciated.

    simon

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1