Good Day,
I have a form which has a calculation however I only want the calculation to calculate when another text box has a value. At present when the form is loaded the calculation completes without there being a value.
The calculated field (RemainingLife) is based on this
Installdate is manually entered however when this is blank the calculation completes which is messy. I would like this calculation (RemainingLife) to only complete when install date has a value.
I have tried a combination of iff statements with IsNull, IsEmpty but I just can’t seem figure this one out.
Any assistance would be greatly appreciated.
Thanks
I have a form which has a calculation however I only want the calculation to calculate when another text box has a value. At present when the form is loaded the calculation completes without there being a value.
The calculated field (RemainingLife) is based on this
Code:
([installdate]+[indicative date]) – [CurrentYear]
Installdate is manually entered however when this is blank the calculation completes which is messy. I would like this calculation (RemainingLife) to only complete when install date has a value.
I have tried a combination of iff statements with IsNull, IsEmpty but I just can’t seem figure this one out.
Code:
=IIf(IsEmpty([txtInstallDate]),"",([txtInstallDate]+[txtIndicativeLife])-[txtCurrentYear])
Code:
=IIf(IsNull([txtInstallDate]),"",([txtInstallDate]+[txtIndicativeLife])-[txtCurrentYear])
Any assistance would be greatly appreciated.
Thanks