Hi all,
I have an issue regarding shared variables.
We have a main report, with startdate, enddate and employer.
I was asked to add total number of users working with that employer, as we have startdate and enddate parameters, I have inserted a subreport to caliculate the total number of users per employer. I am passing the value through a shared variable, When the user selects just one employer it works fine, But when more than one employer is selected (like if user enters ALL) then the displayed shared variable in the main report shows just one value for all the employers, Is there a way to make the shared variable to display the number of users based on group?
I am using Crystal ver 10.
I have two groups one on employer and other on user.
and I am placing the shared variable in group footer 1.
shared variable formula in subreport:
whileprintingrecords;
shared numbervar x;
x:= {@test};
x
{@test}:
distinctcount({user}, ({emp.name}))
Mainreport formula:
whileprintingrecords;
shared numbervar x;
x
Thanks in advance!
I have an issue regarding shared variables.
We have a main report, with startdate, enddate and employer.
I was asked to add total number of users working with that employer, as we have startdate and enddate parameters, I have inserted a subreport to caliculate the total number of users per employer. I am passing the value through a shared variable, When the user selects just one employer it works fine, But when more than one employer is selected (like if user enters ALL) then the displayed shared variable in the main report shows just one value for all the employers, Is there a way to make the shared variable to display the number of users based on group?
I am using Crystal ver 10.
I have two groups one on employer and other on user.
and I am placing the shared variable in group footer 1.
shared variable formula in subreport:
whileprintingrecords;
shared numbervar x;
x:= {@test};
x
{@test}:
distinctcount({user}, ({emp.name}))
Mainreport formula:
whileprintingrecords;
shared numbervar x;
x
Thanks in advance!