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!

Default Value 1

Status
Not open for further replies.

maeling

Technical User
Sep 23, 2002
109
GB
How can I make a calculated formula feilds' default value = zero ?
 
Just add the condition to the fornmula using an If ...Then statement.

If condition = true the 0 else @formula

Ian
 
Thanks - I am a beginer - However below is the formula in question, can you tell me the exact syntax. If the database containds a null value then the formula field is blank.

{#Total on Hand} - {#Total Reserved}



In addition can you do the same on running total fields.


 
The simplest solution is to use the File->Report Options->Convert null values to zero

But to address this question:

If not(isnull({#Total on Hand}))
and not(isnull({#Total Reserved})) then
{#Total on Hand} - {#Total Reserved}
else
0

-k kai@informeddatadecisions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top