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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula Does not Calculate

Status
Not open for further replies.

fsub

Programmer
Feb 2, 2006
60
US
Just wanted to share this....

I have this simple formula to add a few variables. VarB := VarC + VarE + VarI + VarJ + VarK;. The formula does not work at times and result comes out zero.

What fixed this issue is I deleted the formula and retyped everything. And it worked. My guess is that the formula contained some undisplayed character that the syntax checker does not catch.
 
I've had similar: the software makes assumptions it does not tell you about.

Incidentally, you could have done it more conveniently as
Code:
VarC + VarE + VarI + VarJ + VarK

Suitable also to place at detail-line level and summarise. If you're not already familiar with Crystal's automated totals, see FAQ767-6524.

[yinyang] Madawc Williams (East Anglia, UK). Using Crystal 2008 with SQL and Windows XP [yinyang]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top