RWilliams500
New member
- Local time
- Today, 11:32
- Joined
- May 22, 2024
- Messages
- 13
Howdy. I'm trying to get a query (and ultimately a form or control) to display any active user that is not currently assigned to the piece of equipment being viewed in a form. I'll give (what I THINK is) the relevant table information. There are other fields in the table, but I didn't want to flood with irrelevant data. If I'm wrong in that choice, let me know and I'll add all table information.
tblUsers - PK UserID (autonumber), FK EmployeeID, Active (true/false field that should equal True for this purpose)
tblEmployees - PK EmployeeID, Active (true/false field that should equal True as well, this is if they are actively employed, vs an active user of the system)
tblEquipment - PK EquipmentID, CO# (string, a more user friendly identifier in the company for the equipment)
tblAssignedExaminers - PK (Compound key?) EquipmentID & UserID, AssignmentTypeID (this would either be 3, or Null. 3 indicates they used to be assigned to the equipment, but it's no longer theirs, and Null would mean they've never been assigned yet)
So, I'm trying to get active employees, who are active users, that are not currently assigned (so either 3 or Null as above) to a piece of equipment being viewed in a form. The purpose being to be able to select them and assign them to the equipment (which I'm sure I can get working through VBA if I can just get the proper list of users to work)
I was trying to do a subform with linked master/child fields, and then I tried something with parameters and nested queries and I'm just going in circles.
If any help or advice could be given, I'd greatly appreciate it!
tblUsers - PK UserID (autonumber), FK EmployeeID, Active (true/false field that should equal True for this purpose)
tblEmployees - PK EmployeeID, Active (true/false field that should equal True as well, this is if they are actively employed, vs an active user of the system)
tblEquipment - PK EquipmentID, CO# (string, a more user friendly identifier in the company for the equipment)
tblAssignedExaminers - PK (Compound key?) EquipmentID & UserID, AssignmentTypeID (this would either be 3, or Null. 3 indicates they used to be assigned to the equipment, but it's no longer theirs, and Null would mean they've never been assigned yet)
So, I'm trying to get active employees, who are active users, that are not currently assigned (so either 3 or Null as above) to a piece of equipment being viewed in a form. The purpose being to be able to select them and assign them to the equipment (which I'm sure I can get working through VBA if I can just get the proper list of users to work)
I was trying to do a subform with linked master/child fields, and then I tried something with parameters and nested queries and I'm just going in circles.
If any help or advice could be given, I'd greatly appreciate it!