I have a list of records, i suppress every customer that has a null last name, refer.answer = "T" and term2.idnumber is not empty. Now all I need to do is count how many records I have left for a grand total.
Formula...
WhilePrintingRecords;
NumberVar Counter;
if isnull({people.last_name}) or {refer.answer} = "T" or not isnull({term2.idnumber}) then
Counter:=Counter
else
Counter:=Counter+1
This gives me a wrong count because half the records have a null refer.answer. And it doesnt count null refer.answers only those that arent T.
So I tried using this formula...
if isnull({refer.answer}) then
Counter:=Counter+1
else
if isnull({people.last_name}) or {refer.answer} = "T" or not isnull({term2.idnumber}) then
Counter:=Counter
else
Counter:=Counter+1
This formula started counting the null refer.answers but it counts all of them, even those that have a matching term2.idnumber or a null last_name.
Anyone have any suggestions?
Thanks a lot
Formula...
WhilePrintingRecords;
NumberVar Counter;
if isnull({people.last_name}) or {refer.answer} = "T" or not isnull({term2.idnumber}) then
Counter:=Counter
else
Counter:=Counter+1
This gives me a wrong count because half the records have a null refer.answer. And it doesnt count null refer.answers only those that arent T.
So I tried using this formula...
if isnull({refer.answer}) then
Counter:=Counter+1
else
if isnull({people.last_name}) or {refer.answer} = "T" or not isnull({term2.idnumber}) then
Counter:=Counter
else
Counter:=Counter+1
This formula started counting the null refer.answers but it counts all of them, even those that have a matching term2.idnumber or a null last_name.
Anyone have any suggestions?
Thanks a lot