Syntax:
IIF( expression , True value return, False value return )
After you have evaluated the employees longevity and have the year and months stored in variables let's say then use the following IIF function to display the results in a form control:
vYears = 0
vMonths = 4
me![EmployeeLongevity] = IIF(vYears = 0, vMonths & " months", vYears & " years, " & vMonths & " Months"
Control will display: 4 Months
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.