Results 1 to 5 of 5
  1. #1
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402

    export report to excel

    Hi All



    been looking in the forum but can't seem to find out if this is possible

    i have a report called "profit and loss" that is not based on a query but has lots of unbound fields, these fields are populated by Dsum values, the report is filtered between to dates from the form that opens it "open Profit and loss Form"

    is it possible to have a button on the report that when clicked exports the report into excel and also keeps the formatting?

    if i preview the report and right click - export to excel all the data is placed in the same row, and no formatting is carried over.

    Many Thanks

    Steve

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    exporting a report directly to an excel spreadsheet, probably not. You'd likely have to cycle through the data source driving the report and export cell by cell. If the export to excel is giving you the numbers you want, just not in the correct format you may be able to, instead, open the excel file after the export is completed, modify the format of ranges of cells to be what you want, then close the file again. I believe you can suppress the excel window from showing in your hotbar as well so it looks seamless.

  3. #3
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402
    Hi rpeare

    thanks for the response, i have just noticed that no data is exported, the labels are but the data that fills the unbound text box does not?

    should the values be exported? or will i have yo base the report on a query?

    Steve

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    Typically when you export a report to excel none of the formula fields go with it, usually it's just the data that comes from the query/table (I don't export reports very often, maybe once every couple of years). So the short answer is yes, if you want to see your data in a certain way when you export it it's probably better to base your report on that query or, alternately, create a query that has the exact same data you want and export the query as an excel spreadsheet rather than the report itself.

  5. #5
    sdel_nevo is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2013
    Location
    Gloucester, UK
    Posts
    402
    Hi

    thank you for that mate

    i will create the query and export that.

    many thanks

    steve

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

Similar Threads

  1. Simple report export to excel
    By crombiecrunch in forum Reports
    Replies: 2
    Last Post: 05-30-2013, 09:10 AM
  2. Report data changing in export to Excel
    By Monterey_Manzer in forum Reports
    Replies: 2
    Last Post: 03-14-2013, 01:55 PM
  3. Export Report with Page Headers to Excel
    By EddieN1 in forum Reports
    Replies: 1
    Last Post: 09-01-2012, 12:37 PM
  4. Report export to Excel with format
    By mrswarrick in forum Access
    Replies: 3
    Last Post: 02-29-2012, 03:10 PM
  5. Report Export to Excel
    By BLD21 in forum Import/Export Data
    Replies: 1
    Last Post: 05-06-2011, 10:19 AM

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