Question
July 17, 2012 at 09:45 AM
wesselsm

CRYSTAL Shared Variables

by wesselsm . Updated 14 years, 1 month ago

Quite new to Crystal and want to share a variable from a sub to a main report.
I declared it as follows:
WhilePrintingRecords;
Shared NumberVar TranTotal:= Count ({USERS.USER_NAME});

In the main report I did the following:
WhilePrintingRecords;
Shared NumberVar TranTotal;
TranTotal;

Irrespective of where I enter the formula in the main report it continues giving a zero value, whilst the actual count is 581.

I am using Crystal 2011

This discussion is locked

All Comments