smtazulislam
Member
- Local time
- Today, 14:38
- Joined
- Mar 27, 2020
- Messages
- 808
Here I using the module of
Original Developer: Michael Walsh
Calling: Call from Control Source of Text Box
Func : =IIf([BirthDate] Is Null,"",CalcAge([Birthdate],Date()))
It is work good. But problem is when employee is left then it is not calculated DateLeft
Hired Date & Left Date :
I tried two ways "=" and "<>"
Original Developer: Michael Walsh
Calling: Call from Control Source of Text Box
Func : =IIf([BirthDate] Is Null,"",CalcAge([Birthdate],Date()))
It is work good. But problem is when employee is left then it is not calculated DateLeft
Code:
IIf([EmploymentDate] Is Null,"",CalcAge([EmploymentDate],Date()))
Hired Date & Left Date :
I tried two ways "=" and "<>"
Code:
IIf([StatusID]=InStr(2,3,4,5),"",CalcAge([EmploymentDate],[DateLeft]))
IIf([StatusID]<>InStr(2,3,4,5),"",CalcAge([EmploymentDate],[DateLeft]))