I have a database of employees in & out punching to the office. The fields are Date, EmpCode, Intime, Outtime, Comments. I want generate a query for the field " Comments" as follows :
IF intime = null AND outtime = null, Comments = "Absent"
IF intime = null AND outtime = "", Comments = "Late"
IF intime = "" AND outtime = null, Comments = "Left Early"
IF intime = "" AND outtime - "", Comments = "Present"
I tried various combinations of IIF, OR, AND functions but without any success. The intime & outtime values are in time format, hr:mm
Pl suggest a solution
Thanx