Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calculated field puzzle 1

Status
Not open for further replies.

finglem

Technical User
Nov 14, 2003
66
GB
Hi folks

I've created a report using VFP8 that uses a calculated field in the detail section of a report.

I copied the calculated field and placed in in the footer of the report and selected SUM to total it.

It seems to work fine up to about 34400 records but after that the result is that the field displays zero ie 0.00

The total up to rec no 34400 is say 1,234,567.89 and the expression box is formatted 99,999,999.99

Has anybody any idea as to why this could be happening?
Any help would be much appreciated.

 
another idea, if this is a calculation that you are printing only once, at the end of the the report (if that's what you meant by 'footer of the report') you can do your calculation before you even get into the report.
 
Thanks for your suggestions guys but neither has worked.

Seems to work up to 35000 records then all you get is either 0.000 or ***************.

I'm wondering if there may be some sort of data corruption issue. Any thoughts???
 
Hi,

See thread184-695709 (How to catch numeric overflow data?), check all the fields involved in your calculation.
 
The Rambler

Thanks for pointing me in the right direction. There was indeed numeric overflow in one of the fields (out of 70000)

Report seems to be running as expected.

Thanks to all for suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top