I have never used a subquery before. Below is my SQL, what would I need to type:
SELECT tbl_AgentSchedule.[Agent Name], tbl_AgentSchedule.[Start Time], tbl_AgentSchedule.[End Time], tbl_LogInLogOut.[Login Date], tbl_LogInLogOut.[Log In Time], tbl_LogInLogOut.[Reason code], tbl_LogInLogOut.[Log Out Time], [Log In Time]-[Start Time] AS Expr1, [Log In Time]*86400 AS Expr2, [Start Time]*86400 AS Expr3, [Expr3]-[Expr9] AS Expr4, IIf([Expr4]>0,"0",[Expr4]) AS Expr5, [Expr5]/86400 AS [Time from Start of Shift], [Log Out Time]*86400 AS Expr6, [End Time]*86400 AS Expr7, [Expr6]-[Expr7] AS Expr8, IIf([Expr8]>0,"0",[Expr8]) AS [Time to End of Shift in Seconds], [Time to End of Shift in Seconds]/86400 AS [Time to End of Shift], [tbl_Exceptions Query].[Begin Time], [Start Time]*86400 AS [Start Time in Seconds], [Begin Time]*86400 AS [Begin Time in Seconds], IIf([Begin Time in Seconds]=[Start Time in Seconds],[Start Time in Seconds],[Expr2]) AS Expr9, [Expr9]/86400 AS [Start Time in Mins], tbl_LogInLogOut.[LogIn Duration], [LogIn Duration]*86400 AS [Log In Duration in Seconds]
FROM (tbl_AgentSchedule INNER JOIN tbl_LogInLogOut ON tbl_AgentSchedule.[Agent Name] = tbl_LogInLogOut.[Agent Name]) LEFT JOIN [tbl_Exceptions Query] ON tbl_AgentSchedule.[Agent Name] = [tbl_Exceptions Query].[Last Name, First Name]
WHERE (((tbl_LogInLogOut.[Login Date])=[Enter Start Date:]));