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

Stop (-)ve values showing in calculated control 1

Status
Not open for further replies.

james33

Technical User
Dec 23, 2000
1,345
IE
I have a calculated control on a Hire Database form and it arises from a situation where the Deposit is not sufficient to cover the HireSubTotal.
It is exacerbated by the VAT which is added to it afterwards as well because that shows up as a negative number too.
How can I leave blank the calculated HireTotal Control when this situation occurs?
In advance thanks for any Help
Jim
 
Jim,
You can use the ubiquitous Inline-If, or IIF() function, change the calc'd control source to:
=IIF([YourOriginalCalc]<0,&quot;&quot;,[YourOriginalCalc])
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top