Hello,
I'm using Crystal Reports 8.5 and trying to produce a report that shows the number of three ticket types a customer has used (i.e. Child Ticket). For whatever reason, I haven't been able to pull that info directly from the database- but I did find a list of how many tickets and what the price of that ticket was. So, I'm using a running total that counts the number certain ticket prices show up. Then I define a shared variable equal to that running total. Ex.:
WhilePrintingRecords;
Shared NumberVar ChildCount;
ChildCount := {#ch_from_amount}
But when I try to use that variable in the main report, I always either get a zero or nothing returned. The formula I'm using right now is:
WhilePrintingRecords;
Shared NumberVar ChildCount;
ChildCount
This, however, only returns 0.00, which is not the correct value. I know that the variable is defined correctly because I can use it in the subreport to do anything I want. I placed the subreport in the report header of the main report, but this doesn't seem to be working. I've tried to move the subreport to the page header, which would leave it still above my other formulas that reference the shared variables, but it tells me the page isn't large enough.
I'm a novice at this so I'm out of ideas and desperate for some help. Any ideas? Thanks,
dylan
I'm using Crystal Reports 8.5 and trying to produce a report that shows the number of three ticket types a customer has used (i.e. Child Ticket). For whatever reason, I haven't been able to pull that info directly from the database- but I did find a list of how many tickets and what the price of that ticket was. So, I'm using a running total that counts the number certain ticket prices show up. Then I define a shared variable equal to that running total. Ex.:
WhilePrintingRecords;
Shared NumberVar ChildCount;
ChildCount := {#ch_from_amount}
But when I try to use that variable in the main report, I always either get a zero or nothing returned. The formula I'm using right now is:
WhilePrintingRecords;
Shared NumberVar ChildCount;
ChildCount
This, however, only returns 0.00, which is not the correct value. I know that the variable is defined correctly because I can use it in the subreport to do anything I want. I placed the subreport in the report header of the main report, but this doesn't seem to be working. I've tried to move the subreport to the page header, which would leave it still above my other formulas that reference the shared variables, but it tells me the page isn't large enough.
I'm a novice at this so I'm out of ideas and desperate for some help. Any ideas? Thanks,
dylan