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

Microsoft Access Calculated Field - Division By Zero 1

Status
Not open for further replies.
Mar 2, 2005
171
US
Currently, I have a calculated field in a Access query as follows:

Ratio: "Encounter.Expected_Reimbursement/Encounter.Total_Payments" that continues to return an error titled "Division By Zero." I would like to see the results displayed in the percentage format.

I formatted the column as "Percent" but the error still is displayed!

What am I overlooking? Any assistance is appreciated.

Thanks in advance.
 
Seems that you have records with Total_Payments=0 ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
You could try something like:

IIf(Encounter.Total_Payments=0, 0, Encounter.Expected_Reimbursement/Encounter.Total_Payments)

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top