I am fairly new the using Access and seem to be stuck on something. Here is the code I am working with:
I have a form called F_Log where information is pulled down from drop down menus. The way this is setup is after the user selects a Department it after updates a different combo box that has the above code in the Row Source so it shows only the Keepers (It's for a zoo so keepers are the employees) that are in the department selected ORDERED by their last name. I am trying to further create criteria where it only shows keepers in a selected department if they are a current employee. I have two yes/no check box on the T_Keepers table. There is a box for yes and a box for no. I have having a heck of a time figuring out how to add it to this statement.
Please help!
Code:
SELECT T_Keepers.KeeperID AS Expr1, T_Keepers.FirstName & " " & [LastName], T_Keepers.DepartmentID AS Expr2 FROM T_Keepers WHERE (((T_Keepers.DepartmentID)=Forms!F_Log!Departments)) ORDER BY T_Keepers.LastName;
I have a form called F_Log where information is pulled down from drop down menus. The way this is setup is after the user selects a Department it after updates a different combo box that has the above code in the Row Source so it shows only the Keepers (It's for a zoo so keepers are the employees) that are in the department selected ORDERED by their last name. I am trying to further create criteria where it only shows keepers in a selected department if they are a current employee. I have two yes/no check box on the T_Keepers table. There is a box for yes and a box for no. I have having a heck of a time figuring out how to add it to this statement.
Please help!