Hi...
I am using CR 8.5 and an SQL database.
This is the counter that I have currently in my reports. It works great. The first Number Variable is a Grand Total count. The second is a Group Total count that is reset after each group.
I would like the Group Total to leave out any prsnl_no that is recorded in the previous goup.
I am using CR 8.5 and an SQL database.
This is the counter that I have currently in my reports. It works great. The first Number Variable is a Grand Total count. The second is a Group Total count that is reset after each group.
I would like the Group Total to leave out any prsnl_no that is recorded in the previous goup.
Code:
WhilePrintingRecords;
NumberVar TotalCounter := TotalCounter +
If( not Isnull({gusd_person.prsnl_no})) and ({gusd_person.emp_stat} in ["A","I"])
//Employment Status... A=Active I=Inactive
then
If (Not isnull({gusd_person.prsnl_no})) and (PreviousIsNull({gusd_person.prsnl_no}) or {gusd_person.prsnl_no}<> Previous({gusd_person.prsnl_no}))
Then
//This is where I would like it not to count anything
//that is in the previous group.
Then
1
Else
0;
NumberVar MyGroupCounter := MyGroupCounter +
If( not Isnull({gusd_person.prsnl_no})) and ({gusd_person.emp_stat} in ["A","I"])
then
If (Not isnull({gusd_person.prsnl_no})) and (PreviousIsNull({gusd_person.prsnl_no}) or {gusd_person.prsnl_no}<> Previous({gusd_person.prsnl_no}))
then
//This is where I would like it not to count anything
//that is in the previous group.
then
1
Else
0;
MyGroupCounter;
//Display the Group Counter
[\code]
I have tried and tried to create a formula using the Previous group but I can never seem to get it to work right. Any suggestions?
Thanks
-c0wt0wn1-
:-)MikeGose