Solved

Export MS Access Report to Excel but blank footer data

Posted on 2012-03-22
7
829 Views
Last Modified: 2012-03-24
Hello,

 I have a simple access report that displays financial data by account number. It has account number, account name and a total.  I am grouping  and summing  by account number.  It works great.    My client wants to have a version  that exports into excel.  I thought it would be a simple matter of using the export feature in excel. However, the account number and name, in the summary section  do not display in the export to excel.  I can export it to text and see the data.

I must be missing something very simple. Or is this a classic “Microsoft slap upside the head” where something that should be simple is not.

The report is very simple. I have attached two screen shots.  I added a detail line just for testing. I only want the summary level by account.

Office 2010 for both access and excel.

Thank you,
access.JPG
excel.JPG
0
Comment
Question by:Epistrophy
  • 4
  • 3
7 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37754160
Exporting Access Reports to Excel, ...has never been, nor will it ever be, ...Perfect.

In your report make *sure* that all the controls associated with a field are the exact same size and are all aligned together.

FWIW the report in the attached DB exports to Excel fine for me...
Database102.mdb
0
 

Author Comment

by:Epistrophy
ID: 37754343
boag2000,

Thanks for the reply. The problem is the detail section. I only want the summary.  I took your sample and deleted  the detail section, saved, ran and exported.  I get blanks now. It seems that the export only works if there is a detail section.  

I also, edited your report and copied the account name and account number fields to the summary level. Saved, ran and exported and the sum shows up but not the account name or number.

Perhaps it is not possible to export a report that only summarizes data



 I am thinking I might just do a make table query and export that instead.
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 37754443
Then AFAICT, you really don't even need a report, you can just create a "Summary" query (Group By query) and simply export that to Excel...

Or you can still create a Report from the new summary Query (if you need a Grand Total), only no grouping would be needed in the report

Modified sample attached
Database102.mdb
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Epistrophy
ID: 37754490
boag2000,

 I like it. I trying to do it all in one report but I think I will make a separate summary query the client can run just for the export.  I will give it a shot with the real data.

Thanks.
0
 

Author Comment

by:Epistrophy
ID: 37760760
Boag2000,

 I followed your advice.  I left the original report the way it is since it is formatted for printing. I made a new query with the grouping in the query. I used that query in a new report stripped of the formatting for export.

Thank you

Epistrophy
0
 

Author Closing Comment

by:Epistrophy
ID: 37760763
Thank you
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 37760821
;-)
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question