I have a crystal report that counts case numbers if the case was open longer than 7 days.
I do this in 2 simple formulas
The first is...
@admits
If LOS(length of stay)>=7 then 1 else o
Then...
@Admitcnt
Sum(@admits)
However my count returns a larger number than it should because I have a detail table linked, so for each case there may be several codes in the LOS_Code field of my detail table causing it to count the case as many times as there are codes in the LOS_Code field. In Access if I use the LAST function on the LOS_Code field it alleviates this problem. Is there such a function in Crystal 8? I can't use MAXIMUM because it applies to numbers and my LOS_Code field is text. Any ideas???
I do this in 2 simple formulas
The first is...
@admits
If LOS(length of stay)>=7 then 1 else o
Then...
@Admitcnt
Sum(@admits)
However my count returns a larger number than it should because I have a detail table linked, so for each case there may be several codes in the LOS_Code field of my detail table causing it to count the case as many times as there are codes in the LOS_Code field. In Access if I use the LAST function on the LOS_Code field it alleviates this problem. Is there such a function in Crystal 8? I can't use MAXIMUM because it applies to numbers and my LOS_Code field is text. Any ideas???