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.
Bookmarks