I have a table called Employee, another called EmployeeLOA (leave of absence) and a third called EmployeeTermination. I want to create a textbox on a form bound to Employee that displays LOA, Terminated or Active.
Active is assumed if the employee is not Terminated or on LOA.
If there are any Termination dates, the employee can be marked as Terminated
BUT for the leave of absence, Every time the employee takes an LOA, an LOADate and ReturnDate are recorded. I need to find the most recent LOADate for this employee and check to see if the current date is between that and the Return date.
So far, I can't even get it to tell me LOA or not.