Hi,
I am running Crystal 8.5 pulling data from Cache database on Win XP PC.
I have a sub report that calculates the balance for an individual client. The subreport works fine and calculates the balances all correctly, If i run them one at time. If try to run the report and allow it to calculate balances for all clients using this parameter.
IIF ({?patid} = "ALL", {client_demographics.PATID} = {client_demographics.PATID}, {client_demographics.PATID} = {?patid});
I get the correct value for the first client and the rest are zero.
I am initializing my variables in the group header for client demographics PATID(patient id. this is what I initialize.
whileprintingrecords;
shared numbervar Balance:=0;
shared numbervar Charges:=0;
shared numbervar Payments:=0;
That in itself is a whole different problem. Since the report does produce the correct value if I run the report one PATID at time. I felt that I could insert this report into my main report run the subreport using the PATID from the main report. Doing this I only get zero for every client.
I placed the subreport in the Group header for PATID and a variable in the detail section to display the value.
any ideas or leads will be appriciated.
I am running Crystal 8.5 pulling data from Cache database on Win XP PC.
I have a sub report that calculates the balance for an individual client. The subreport works fine and calculates the balances all correctly, If i run them one at time. If try to run the report and allow it to calculate balances for all clients using this parameter.
IIF ({?patid} = "ALL", {client_demographics.PATID} = {client_demographics.PATID}, {client_demographics.PATID} = {?patid});
I get the correct value for the first client and the rest are zero.
I am initializing my variables in the group header for client demographics PATID(patient id. this is what I initialize.
whileprintingrecords;
shared numbervar Balance:=0;
shared numbervar Charges:=0;
shared numbervar Payments:=0;
That in itself is a whole different problem. Since the report does produce the correct value if I run the report one PATID at time. I felt that I could insert this report into my main report run the subreport using the PATID from the main report. Doing this I only get zero for every client.
I placed the subreport in the Group header for PATID and a variable in the detail section to display the value.
any ideas or leads will be appriciated.