Results 1 to 14 of 14
  1. #1
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29

    Red face Export hidden Data from report

    Hello,


    I was wondering if anybody knows a way to export data from a report if it is hidden. thanks!

  2. #2
    imintrouble is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    Missouri, where frownin's a sport
    Posts
    127
    If what's hidden? More information would be helpful.

  3. #3
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    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

  4. #4
    imintrouble is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2011
    Location
    Missouri, where frownin's a sport
    Posts
    127
    What John said.

  5. #5
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    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.

  6. #6
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    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

  7. #7
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    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.

  8. #8
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    It exports all the visible fields into columns.

  9. #9
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    Are you telling me that you didn't know that reports can export data?

  10. #10
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    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

  11. #11
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    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.

  12. #12
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    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

  13. #13
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    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.

  14. #14
    sstrauss87 is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    29
    They should have made an option to "Export Record Source", would have made my life a lot easier.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Export Specific Data
    By Learner123 in forum Access
    Replies: 3
    Last Post: 05-29-2011, 11:27 AM
  2. Replies: 0
    Last Post: 01-18-2011, 07:09 AM
  3. Export form data to report
    By rev_ollie in forum Forms
    Replies: 3
    Last Post: 04-22-2010, 05:24 AM
  4. Export report to jpg
    By isdm in forum Reports
    Replies: 1
    Last Post: 04-16-2010, 10:00 PM
  5. Replies: 0
    Last Post: 06-11-2009, 01:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums