Message
From
15/12/2006 19:59:47
 
 
To
15/12/2006 17:11:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01178103
Message ID:
01178222
Views:
20
>
>You didn't, perchance, sum the variable in two places? In the report variable, and in the expression field.
>
>If you did that, you must check "Sum" only in one of those two places.

No. I can see it is very simply the fact that VFP "counts" every record, even those that don't have the field that need to be summarized. The only solution I can think of, so far, is to create a third cursor (outside of the report) and use fields of this cursor to show totals. But this is, IMO, kludgy. I would be surprised if VFPT didn't think of this. So I hope I am missing something simple and maybe someone will point me in the right direction.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View