Link to home
Start Free TrialLog in
Avatar of GrahamSA
GrahamSAFlag for South Africa

asked on

Crosstab Query refresh

Hi Experts

Greetings from SA, hope all is well!

OK I have a crosstab query in access that suits my need perfectly however the report that goes to senior management is an excel file that is fed by quite a few queries and tables done in access.

Is there a way to add the crosstab query to excel and have it refresh with all the other info.
When I go the "Data, From Access" route excel cant see the crosstab query, it sees everything else in the access file.
Avatar of MINDSUPERB
MINDSUPERB
Flag of Kuwait image

You can't update an Excel spreadsheet from Access. You need to export your data through a Crosstab query into Excel.

So if you want to refresh your data in Excel through Access query, you might not get what you want.

Ed
Avatar of GrahamSA

ASKER

Hi

The refresh is done in excel not access which works 100% I need to add the crosstab info to the workbook and have it also be refreshable.

if I export the crosstab out off access into excel it has no ability to refresh.
GrahamSA,

Try to check the query you mentioned in Access if its property not set to hidden. Any object hidden in the design view are greyed out.

Sincerely,
Ed

Thanks Ed
I will look at all this and get back to you tomorrow...
Avatar of Jeffrey Coachman
In Excel the equivalent object to a crosstab query is a "Pivot table"

So it might be simpler to just create a Pivot in Excel from from the Access data.
The Pivot table will refresh each time it is opened, or you can refresh it manually by selecting Refresh from the Data section of the Options tab
ASKER CERTIFIED SOLUTION
Avatar of GrahamSA
GrahamSA
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Good that you figure it out.

I was thinking that the query you mentioned is hidden. Any hidden tables and queries in access will not display in Excel when you do go to Data -> From Access.

Sincerely,
Ed
Thanks Friend

I wonder why Excel does not see the crosstab query its not hidden, I presume that spreadsheets dont quite work that way.
Excel can only really see "Select" queries.
(Action queries are hidden as well)

I found the solution completely by accident, the solution works perfectly.
I posted the question because i couldn't seem to find out how to solve the problem