Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Different sums
Message
From
08/10/1998 14:56:02
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00145154
Message ID:
00145168
Views:
42
>>When I am in the report designer (deposit.frx) and preview the report, my totals at the bottom of the report are accurate. But when I "REPORT FORM deposit PREVIEW" in the click method of a button, the total is off by $.01.
>>
>>This is consistantly this way with the same set of data. With a different set of data, the totals are identical.
>>
>>Any ideas?
>>
>>TIA
>
>Bill,
>
>Are you using ROUND() on the detail lines and then summing the rounded values?

Nope: I was summing val(strtran(dbf.field,',')), but I changed dbf.field to a numeric value and the problem seems to have gone away (knock on wood).
Bill Morris
Previous
Reply
Map
View

Click here to load this message in the networking platform