1:
If DCount("EmployeeID" AND "RecordNum", "qy_ListEmployeeLeave", "[Forms]![frm_Switchboard].[txtEmployee]" And "[Forms]![frm_Switchboard].[cboRoom]") > 0) Then ...
If DCount("*", "qy_ListEmployeeLeave", "([Forms]![frm_Switchboard].[txtEmployee] > '') And ([Forms]![frm_Switchboard].[cboRoom]) > 0") Then ...