Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Problem with global variables Post Reply Post New Topic
<< Prev  Page  of 2
Author Message
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 03 Jun 2011 at 8:07am
This is one of those iffy questions.  If the subreport updates the shared variable, and it does it before the reset formula...well who knows what is going to happen. 
 
Typically what I will do, just to be sure of the order of when things occur, is to create another groupheader (add section before) and I will place my reset formula there and suppress the section.  This way, I know that the variable is reset before it goes to a subreport, and if there are no records in the subreport, it probably won't reset the variable as it is not called...or so it seems.
 
HTH
IP IP Logged
<< Prev  Page  of 2
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum