Hello,
I was wondering if anybody knows a way to export data from a report if it is hidden. thanks!
Hello,
I was wondering if anybody knows a way to export data from a report if it is hidden. thanks!
If what's hidden? More information would be helpful.
What do you mean by "export the data"? Do you mean calculated items (totals, etc) from the report, or do you mean the source data that the report is generated from?
In any event, the general answer to your question is "no", because a report does not keep its data anywhere, like a recordset. If you wanted to do that, you would have to write VBA code to save the data as it is generated, but even that would be full of potential problems. Please give a better indication of what it is you are trying to do.
John
What John said.
I want to export the report to Excel, I need the report for the companies references, however, there are far to many fields to be displayed in the report, I wish to only show the most important fields in the report but include the other data as hidden data so when I export all the data to a spreadsheet it will all be transferred.
Hi -
As I said earlier - you can't export report data, because the report does not keep it anywhere (referring to values calculated in the report). You would have to save the calculated values as the report was generated, but that poses all sorts of problems.
My suggestion would be to either a) export the report source data (table or query) to Excel and do the calculations there, or b) write a VBA routine to do the calculations, save the results to a table (including all the fields you need), and then export the table.
Besides all that - what report data would you export? Headers? Footers? Detail? they are all different.
John
I'm confused when you say I can't export report data, because If I open a report in print preview I can export the report to excel but It only export the visible fields.
It exports all the visible fields into columns.
Are you telling me that you didn't know that reports can export data?
Sorry, I overlooked that. But I tried myself what it is you want to do, and you are right, it does not export hidden fields.
But I also notice that only group headers and detail lines are exported - group, page, and report footers, which usually contain totals, are not. (IMHO, that renders the whole exercise somewhat pointless).
Given that limitation, you would probably be better off just exporting the report's source query.
John
I wish I could but I need it to be in report form so users can enter criteria through the front end. I guess I'm out of luck, thanks anyway.
I wasn't trying to sound like a dick earlier, I guess I just assumed you knew. I'll have to place all of the fields on the report then shrink them and hide them behind the fields that I want to be shown. lol
Hi -
No harm done. Exporting to Excel from a report is not something that I have ever needed to do, nor have I been asked about it - so I had never looked into it. That's what happens when we assume too much. Sorry for the confusion.
They should have made an option to "Export Record Source", would have made my life a lot easier.