[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Crystal Reports Divide By Zero

Posted on 2009-12-17
1
Medium Priority
?
574 Views
Last Modified: 2012-05-08
I am getting a divide by zero error on the following syntax.  Any help would be appreciated.

if {ALM_CO_SALES\\.NET_CURR_AMOUNT}=0 then 0
else if {ALM_CO_SALES\\.SERIES_ID} = 'CR' then 0
else {@fDiscountDollars}/({ALM_CO_SALES\\.SALE_UNIT_PRICE}*{ALM_CO_SALES\\.INVOICED_QTY}-{@fDiscountDollars})
0
Comment
Question by:LRI1
1 Comment
 
LVL 13

Accepted Solution

by:
PCIIain earned 1000 total points
ID: 26071636
if {ALM_CO_SALES\\.NET_CURR_AMOUNT}=0 then 0
else if {ALM_CO_SALES\\.SERIES_ID} = 'CR' then 0
else if {ALM_CO_SALES\\.SALE_UNIT_PRICE}*{ALM_CO_SALES\\.INVOICED_QTY}-{@fDiscountDollars} = 0 then 0
else {@fDiscountDollars}/({ALM_CO_SALES\\.SALE_UNIT_PRICE}*{ALM_CO_SALES\\.INVOICED_QTY}-{@fDiscountDollars})
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Loops Section Overview
Suggested Courses
Course of the Month19 days, 2 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question