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

Access 2010 calculation in table resulting in #NUM!

Status
Not open for further replies.

jlr123

Technical User
Feb 24, 2014
117
US
My calculation for % is resulting in #NUM! and I need for it to result in 0% if the calculation results in 0. This (I hope) will enable me to group and get an average % in a report. Does anyone know how I can do this?
Thanks.
 
This is in my table.

(Currency) (Currency)
Expression : [Total job Expenses]/[InvoiceTotal]
Result Type: Single
Format: Percent
Decimal Places: auto
 
Is this expression actually in the table design?
Is it possible one or both fields are blank or 0?
You may need to change the expression to: IIf([InvoiceTotal]=0,Null,[Total Job Expenses]/[InvoiceTotal])


Duane
Hook'D on Access
MS Access MVP
 
This worked perfectly. Thanks very muich.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top