RE: Dexterity Report Calculated Field
Hi,
The reason is because RW is a "single pass" report writing tool.
For example, let's say you have a report that will generate 10 records (in the body). RW 1st generates the RH/PH sections and at this time it has no idea how many records are in the body and therefore wouldn't be able to SUM those records.
Only as RW starts printing the records in body section does it know that those records exist. As a visual add, it might help if you add your calc field into the body section of the report and make it a SUM. It actually will print like a "Running Sum". This is because when it prints the 1st record...this is the only record it knows about. And when it prints the 2nd record...then it only knows about these 1st 2 records...etc...
The way around this is:
1.) Use VBA to run a SQL statement that gets you the correct value.
2.) Use DEX to get the desired value.
Thanks,
Justin