'Crystal Reports Data being lost on export to CSV

I have a report with subreports in the report and the main report - contains the formula which passes the data from the subreport to the main report -

Shared NumberVar TotalHours; {@Count} + TotalHours;

However the data is correct in the report when I export the data to CSV - all the values return 0. Which is incorrect - Can anybody help me please to see why the data isn't exported correctly ?? Thanks so much :)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source