ChiTownDiva
Technical User
I've got a problem with counting records in the report footer.
I need to count the number of records for people who are "active" and people who are "on leave".
I wrote two separate formulas to evaluate this--the first (@ActiveEmployee)is:
WhileReadingRecords;
numbervar Counter;
If {Query.PERSON_STATUS} = 'A' then
(Counter := Counter + 1)
else Counter;
The second is for everyone who's on leave (@OnLeaveEmployees):
WhileReadingRecords;
numbervar Counter;
If {Query.PERSON_STATUS} = 'L' then
(Counter := Counter + 1)
else Counter;
But I want to evaluate the people on leave AFTER evaluating the people who are active:
EvaluateAfter({@OnLeaveEmployees})
I come up with most bizarre numbers I've ever seen in my life!! If I have 2465 records, I've come up with 2113 active and 11 people on leave--sometimes if I click from design and back to preview I come up with a totally different set of numbers without even refreshing the data or report--it's wild!
Does anyone have any ideas what the heck is going on?
I've tried all types of combinations to make the numbers come out right (WhilePrintingRecords--yes, I tried that too!) and I'm baffled.
Help!
I need to count the number of records for people who are "active" and people who are "on leave".
I wrote two separate formulas to evaluate this--the first (@ActiveEmployee)is:
WhileReadingRecords;
numbervar Counter;
If {Query.PERSON_STATUS} = 'A' then
(Counter := Counter + 1)
else Counter;
The second is for everyone who's on leave (@OnLeaveEmployees):
WhileReadingRecords;
numbervar Counter;
If {Query.PERSON_STATUS} = 'L' then
(Counter := Counter + 1)
else Counter;
But I want to evaluate the people on leave AFTER evaluating the people who are active:
EvaluateAfter({@OnLeaveEmployees})
I come up with most bizarre numbers I've ever seen in my life!! If I have 2465 records, I've come up with 2113 active and 11 people on leave--sometimes if I click from design and back to preview I come up with a totally different set of numbers without even refreshing the data or report--it's wild!
Does anyone have any ideas what the heck is going on?
I've tried all types of combinations to make the numbers come out right (WhilePrintingRecords--yes, I tried that too!) and I'm baffled.
Help!