Check with the below query.
TRANSFORM Max(ABSEN.TIME) AS MaxOfTIME
SELECT ABSEN.ID,
MASTERID.NAMEID,
MASTERID.LOCATION,
ABSEN.[DATE],
FORMAT(ABSEN.DATE,'dddd') AS DAYS,
IIF(ABSEN.STATUS = "NO PRESENT", "", MASTERDAYS.DEFAULTIN) AS DEFAULTIN,
IIF(ABSEN.STATUS = "NO PRESENT", "",MASTERDAYS.DEFAULTOUT) AS DEFAULTOUT,
MASTERDAYS.DEFAULTREST,
ABSEN.STATUS,
IIF(ABSEN.INFO2 = "NO WORK", ABSEN.INFO2,"") AS INFO2,
(CCur((DateDiff("n",MASTERDAYS.DEFAULTIN,MASTERDAYS.DEFAULTOUT)\6)/10)) AS DURATIONWORK
FROM (ABSEN INNER JOIN MASTERID ON ABSEN.ID = MASTERID.ID)
INNER JOIN MASTERDAYS MASTERDAYS ON MASTERDAYS.LOCATION = MASTERID.LOCATION AND MASTERDAYS.DAY = FORMAT(ABSEN.DATE,'dddd')
GROUP BY ABSEN.ID, MASTERID.NAMEID, MASTERID.LOCATION, ABSEN.[DATE], ABSEN.STATUS, ABSEN.INFO2, MASTERDAYS.DEFAULTIN, MASTERDAYS.DEFAULTOUT, MASTERDAYS.DEFAULTREST
PIVOT ABSEN.INOUT IN ('IN','OUT');