Solved

Access 97 report charts duplicate in print preview

Posted on 2004-08-18
5
412 Views
Last Modified: 2008-07-03
Hello:

I have an Access 97 database that does some reporting.  This particular report involves charts.

The design of the report has 1 detail section, and within the detail section is a group footer which groups the data.  The data is grouped and displayed on a chart.  When this report printed to the printer, it has four pages of charts.  On pages 2 and 3, two different charts print on each page - one on the top half of the page and a different one on the bottom half of the page. The problem is that when the same pages are viewed in print preview, the same chart at the top of page 2 is duplicated on the bottom half of page 2.  On page 3 in print preview, the same thing occurs...the first chart on page 3 is repeated (duplicated) on the bottom half of page 3. However, when the report prints to the printer, the correct, different charts print.  

I believe the problem lies with the group footer and may have something to do with the OnFormat event. But after spending nearly three days trying everything under the sun to make the correct charts print in both print preview and on the printer, the only resolution I have been able to come up with is to do NewRowOrCol Before Section which forces each chart to print on a separate page.  When each chart prints on its own page, the print preview and hard copy printing are fine.  I would like to see if I can come up with something that would allow two charts to print to a page.  

Any ideas would be appreciated as I am stuck as to what may be causing this.  Thanks.
0
Comment
Question by:azjz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 8

Expert Comment

by:Eric Flamm
ID: 11834211
First off, Footers don't appear in the Detail section; they are sections unto themselves.

Can you post the code from the Report class module (all events for all sections, unless its really long)? That way, we can see if anything is happening that would cause this result. I can't say I ever did much with charts in Access 97, but they seem to work OK in Access 2000.

-ef
0
 

Author Comment

by:azjz
ID: 11835838
Thanks for the reply.  There is no code in the report module or in any of the controls.
0
 
LVL 8

Accepted Solution

by:
Eric Flamm earned 400 total points
ID: 11836059
I suspect your graph objects are out of sync with your data when displayed in print preview, but get synced when you print them. There's an article on the MIcrosoft KB about this.

http://support.microsoft.com/default.aspx?scid=kb;en-us;318096&Product=acc2002

A Chart on a report displays the incorrect data in Access 2002

-ef
0
 

Author Comment

by:azjz
ID: 11842291
Thanks again for the posting, eflamm.  I used method 2 in the MS knowledge base article, and it worked great.  Thanks for your help.  It was more than worth the points.

Have a great day!
0
 
LVL 8

Expert Comment

by:Eric Flamm
ID: 11844997
You're welcome - good luck!

-ef
0

Featured Post

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

623 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