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

Divide by zero error 2

Status
Not open for further replies.

shrubble

MIS
Jul 23, 2003
300
US
Does anyone know of a quick and dirty way (preferably right in the report designer) to replace #ERROR with a 0 in a report field when a divide-by-zero error occurs?

Thanks!

"I would rather have a free bottle in front of me, than a pre-frontal lobotomy..."

-Shrubble
 
I use IIf() ie:
=IIf([SomeField]=0,0,[OtherField]/[SomeField])

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top