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

"division by zero" error Crystal Reports XI formula 1

Status
Not open for further replies.

Dausa67

Technical User
Oct 1, 2008
96
US
Good Morning,

-Goal: To determine "months of stock on hand"
-Problem: I have fields that are empty with no data or a qty of zero. That is causing me to get an error message "Division by Zero" so the report will not run

My formula: {TS.AVAILABLE} / {TS.AVG_MONTHLY_USAGE}

Does anyone have any suggestions?

Clay
"Without ambition, one starts nothing. Without work and determination, one finishes nothing. The prize will not be sent to you. You have to win it."[/b]
 



thread767-1595409

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks. I tried that but I am still getting the "Division by Zero" message.

Any other suggestions?

Clay
"Without ambition, one starts nothing. Without work and determination, one finishes nothing. The prize will not be sent to you. You have to win it."[/b]
 
Please show the content of the actual formula you tried.

-LB
 



Exactly WHAT did you try that does YET not work?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
if {V_TSLOOKUP.AVAILABLE} <> 0
then {V_TSLOOKUP.AVAILABLE}/{ASI_ITEM_MASTER.AVG_MONTHLY_USAGE}

Clay
"Without ambition, one starts nothing. Without work and determination, one finishes nothing. The prize will not be sent to you. You have to win it."[/b]
 


You must test the DENOMINATOR for ZERO!

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top