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

negative value to show zero 1

Status
Not open for further replies.

rowan1

Technical User
Mar 26, 2002
24
0
0
ES
I have a calculated control on my report.The next control multiplies the previous control by 20%. If the value of the first control is negative I want it to return Zero. Can someone show me how to do this?

Thanks
 
Set the controlsource to:

=Iif(FormControlname<0,0,FormControlname)

replacing "Formcontrolname" with the name of the form control from its property box.

John
 
Thanks John worked perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top