Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Reports

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-19-2007, 07:02 PM
Daveyk01 Daveyk01 is offline
Registered User
 
Join Date: Jul 2007
Location: Lewistown, PA
Posts: 122
Daveyk01 is on a distinguished road
ON FORMAT event - Detail Section

Question:
In my on-format event for the detail section of my large report, I have code that loads data in to number graphs in the report. This can be rather slow.

It seems to me that the on-format event occures for every page and not just when the report is first loaded.

So if Page 1 has a graph and page two doesn't, it looks to me that the code for page one runs when rendering page 2.

If this is true, this is very inefficient and I need to work out a work-around for this. Maybe put a flag field in the graph so it only is loaded with data one time (i.e., if not objDataSheet.Range("Z1").Value then....)
Reply With Quote
Sponsored Links
  #2  
Old 07-20-2007, 10:35 AM
WayneRyan WayneRyan is offline
AWF VIP
 
Join Date: Nov 2002
Location: Camarillo, CA
Posts: 6,817
WayneRyan has a spectacular aura aboutWayneRyan has a spectacular aura aboutWayneRyan has a spectacular aura about
Davey,

The Detail OnFormat event will fire for each row in your report. You could
use the Report's OnOpen event and fire only once, BUT don't the numbers
for the graphs come from your Detail lines?

If so, then you're using the proper event.

Wayne
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
create a Visual Basic procedure ghudson General 0 08-31-2005 08:32 AM
form footer immediately after detail section SunWuKung Forms 0 05-05-2004 01:22 AM
Changing detail section height RichO Reports 1 02-22-2004 11:07 AM
Sum in Detail section kbreiss Reports 5 07-22-2003 08:19 PM
Change height in detail section of form. marathonlady Forms 0 12-17-2002 07:24 AM


All times are GMT -8. The time now is 10:02 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World