Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Global Var Question Post Reply Post New Topic
Author Message
ThatGirlinMS
Newbie
Newbie


Joined: 30 Jan 2010
Location: United States
Online Status: Offline
Posts: 1
Quote ThatGirlinMS Replybullet Topic: Global Var Question
    Posted: 30 Jan 2010 at 5:27pm
I'm in a pickle.  I have a crazy database backend with a ton of linked tables.  My issue is that I need the primary diagnosis code with the newest date.  I can use a running total and get the max effdat for the diag code where the diag type is primary...now I need to get the code with that effdat.  I thought if I could set a global variable and set it to a primary diagnosis code, then in another formula I can use the formula
 
If effdat = (running total max effdat) and diagtype = 'primary' then
   set the global variable = currrent diagnosis code
 
I guess somewhere I'd need to reset the global variable at the beginning of each group change - any help would be appreciated!
 
Thanks!
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 01 Feb 2010 at 1:25pm
you could do that...  OR you could just build the formula, so that for each record, you can do the testing for the max date, and at the same time you could get the diagnosis code.
 
Yes, typically you reset the variables when the group that it is dependent on changes.
 
HTH
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.016 seconds.