Crystal if  groupname equals something then

BKennedy2008
BKennedy2008 used Ask the Experts™
on
global currencyvar TSB10;
WhilePrintingRecords;
if GroupName ({Command.ServiceType}) = "HVAC" then
TSB10 = {#RTotal0}

This is located on the report in the group section of the report, I am getting falses and $0.00

If a groupname is equal to something then.........is this formula incorrect?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior .Net Developer
Commented:
Group header or footer?  I don't believe RTs are available before the body.

Also you could try just doing a sum as you're printing the records.

if ({Command.ServiceType}) = "HVAC"
TSB10 = TSB10  + <col that rt is calculating>

and the last thing . . . not sure if you need a :=  . . . it's been a little bit since I've had to work with crystal vars, just giving you some basic things to check.

Author

Commented:
Thanks.....all it was was := and it worked. I am still learning, thanks again

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial