+ Reply to Thread
Results 1 to 5 of 5

Linked Access query isn't updating

  1. #1
    Registered User
    Join Date
    02-24-2010
    Location
    philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Linked Access query isn't updating

    I'm not sure this is the right forum -- the Access forum seems to be about Access, which I'm not having a problem with.

    The problem is this: I have a UNION query in Access, which puts together data from different sources into one view, and splits them into three categories using the Switch() function. Excel can't see a UNION. So I created a separate SELECT query, since Excel can pull them in as a data source.

    I changed one expression in the Access query, so it now splits things into four categories rather than three. I run the UNION query, it's fine. I run the SELECT query, it's fine.

    I pull it into Excel and it's still three categories. The fourth is gone; it's like it has reverted.

    I created a new workbook and started over - new workbook, new connection, all is well, right? WRONG. It still is only using the three categories.

    I restarted excel, created yet another new workbook and connected to a different query - just the regular SELECT query that is one of the sources of the UNION query. Still only returns the three categories.

    This query is saved in Access, it works in Access, but it's like Excel is hanging on to its concept of what this connection is, and it's hanging on between workbooks, between sessions, everything. I can't figure out what to do to fix this. I compacted and repaired the db. I opened PowerPivot and wrote a query to pull everything from that query.

    I'm looking in the "Existing Connections" dialogue, but I can't figure out how to basically delete them so that I can force it to refresh. Is that a path that could work? I mean, they're set to refresh, so I don't understand why, in a new workbook, the query wouldn't refresh itself.

    Anyone have ANY idea what I should do here? It's driving me nuts.

  2. #2
    Registered User
    Join Date
    03-31-2006
    MS-Off Ver
    Excel 2003
    Posts
    76

    Re: Linked Access query isn't updating

    What's the number of rows?

  3. #3
    Registered User
    Join Date
    02-24-2010
    Location
    philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Linked Access query isn't updating

    Not many - like 2800 total, and only 20 or so are affected. But they're a significant percentage of the total, if we're adding up the figures they represent.

  4. #4
    Registered User
    Join Date
    02-24-2010
    Location
    philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Linked Access query isn't updating

    Update: I was mistaken in how I set up the query. There is a Switch function in there, but the expression that's causing me trouble is an Iif statement, and the problem appears to be that it's evaluating multiple fields. So it's basically this:

    Iif(cm="X", "END", Iif(cm="Y", "FMP", Iif (fn="Z", "TBD", "OSI")))

    As I mentioned, TBD is a subset of OSI.

    I thought that basically when you have a data connection to Access, then Access would run the query, return the results, and Excel would just look at the results as data -- apparently there's something more going on there, and it's a query that Excel can't handle. I'll have to figure out a workaround, but I have no idea what it could be.

  5. #5
    Registered User
    Join Date
    03-31-2006
    MS-Off Ver
    Excel 2003
    Posts
    76

    Re: Linked Access query isn't updating


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel not updating Access linked data
    By hcyeap in forum Access Tables & Databases
    Replies: 2
    Last Post: 04-25-2014, 04:02 PM
  2. Problems with Excel link to Access query not updating
    By JayhawkPammy in forum Excel General
    Replies: 3
    Last Post: 12-06-2013, 10:05 AM
  3. Updating certain forulas when Excel is linked with access
    By anthonyquinn in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-04-2013, 09:25 AM
  4. Linked tables in Access won't query with macro
    By Golden Maple in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2010, 01:42 PM
  5. How to setup a new Access path (linked query)
    By bimmer5dude in forum Excel General
    Replies: 0
    Last Post: 06-13-2008, 07:41 AM

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