G
Guest
I am currently designing a training records database. I am still working on
the structure but a suggestion is that I take the list of training
supervisors straight from the employee list (using a check box).
I have a query listing all the supervisors. In the subform I have a field
for the instructor who run the course. I can obviously use the query to
select all those employees that are supervisors but, for each employee, I
want to select supervisors excluding the current employee. Every time the
employee record changes, the instructor list in the subform changes so that
it excludes that employee. Would like to point out that not all employees are
supervisors (but I can't see that would be a problem)
I think I have got the following vaguely correct.
SELECT [Supervisor].[name] FROM supervisor WHERE
((([supervisor].[name])<>[forms]![Employee]![Name]));
I am not sure about the "after update event". At the moment I have the
following:
Private Sub Name_AfterUpdate()
[Forms]![employee]![employee subform].instructor.Requery
End Sub
Cheers for any help.
the structure but a suggestion is that I take the list of training
supervisors straight from the employee list (using a check box).
I have a query listing all the supervisors. In the subform I have a field
for the instructor who run the course. I can obviously use the query to
select all those employees that are supervisors but, for each employee, I
want to select supervisors excluding the current employee. Every time the
employee record changes, the instructor list in the subform changes so that
it excludes that employee. Would like to point out that not all employees are
supervisors (but I can't see that would be a problem)
I think I have got the following vaguely correct.
SELECT [Supervisor].[name] FROM supervisor WHERE
((([supervisor].[name])<>[forms]![Employee]![Name]));
I am not sure about the "after update event". At the moment I have the
following:
Private Sub Name_AfterUpdate()
[Forms]![employee]![employee subform].instructor.Requery
End Sub
Cheers for any help.