Linked Pivot Table with Access Query Not Pulling in Matching Results

mnty89

Board Regular
Joined
Apr 1, 2016
Messages
66
Again I have a hybrid Access/Excel question/issue..

The problem is that I have a somewhat complicated query in Access. It is populating all of the fields exactly as expected and how I want them calculated. This query is set up as a connection which drives a pivot table in Excel. It looks like the SQL is a simple SELECT * FROM [MY_QUERY], it was populated through the load to pivot table wizard when making a new connection.

So here's the issue.. Within this pivot table I have a series of selections in the Rows. These are based on formulas within the query and populate a string of numbers and text that identify various hierarchies in the data. The issue is that what is being populated in the pivot data is not matching what exists in the Access database/query data. For example, one hierarchy is 123 in Access, and yet when it's shown in the pivot in Excel it is 111. I can drill into the specific record in Excel, then look it up in Access and it is different.

What I believe might be playing into this is the fact that the fields behaving this way are based on an IIF formula to handle certain exceptions where in this scenario it would check if the original value is 111 and then convert it to 123. Although this seems to be working and outputting the correct result in Access for some reason it is not being reflected in Excel's pivot version of the query..

Any ideas? The data is refreshing but for some reason not handling these few fields properly. For further details the IIF also contains a wildcard search to see if one field contains a "*WORDS*" type of result, then if it does outputs a different value than it would. Again, this is functioning properly in Acess and the records are how I intend, just not reflecting in Excel's pivot table version of the data..
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
As an update to the possible root of the issue... If I output the query to a new standalone datasheet table and use that as the data source it's fine.. Somewhat fine with this workaround until I can figure out the root cause
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top