I'm having problems in adding in totals to a crosstab query (see https://access-programmers.co.uk/forums/showthread.php?t=298779)
I've googled this to death and I get solutions that say you need to union this to that and add another query etc etc. I can't fathom how to do this and how it would work as both rows and columns can vary depending upon the data.
I found 1 solution that says in the datasheet view pick total from the Records group. This adds in a total row where I can select sum/count/average for each column.
This is exactly what I want.
But it relies on the user being able to see the ribbon - it's hidden and for good reason. If I run the crosstab query and then do the above and add the totals in when I exit it asks if I want to save it which I do. However when I run it for the second time the totals aren't there unless I click the total icon and they appear in full - ie I don't have to select each field and choose sum/count/average etc
So can i do this using VBA.
(and how!)
I've googled this to death and I get solutions that say you need to union this to that and add another query etc etc. I can't fathom how to do this and how it would work as both rows and columns can vary depending upon the data.
I found 1 solution that says in the datasheet view pick total from the Records group. This adds in a total row where I can select sum/count/average for each column.
This is exactly what I want.
But it relies on the user being able to see the ribbon - it's hidden and for good reason. If I run the crosstab query and then do the above and add the totals in when I exit it asks if I want to save it which I do. However when I run it for the second time the totals aren't there unless I click the total icon and they appear in full - ie I don't have to select each field and choose sum/count/average etc
So can i do this using VBA.
(and how!)