scubadiver007
Registered User.
- Local time
- Yesterday, 21:48
- Joined
- Nov 30, 2010
- Messages
- 317
I have a main form called "appraisals form". Contained within this form are "first name", "last name" and a checkbox for appraiser (an appraisal is a yearly performance review and each doctor needs one).
In a subform control called "appraisals subform" I have a combo box which contains a list of all doctors who are appraisers. The query for this combo box is as follows:
Since a doctor cannot appraise themselves, I need to exclude the name from the list when it comes to the appropriate main form record.
At the moment I have this:
I have tried other variations and even changed the event but nothing seems to work. If the query can be improved, let me know.
Cheers
In a subform control called "appraisals subform" I have a combo box which contains a list of all doctors who are appraisers. The query for this combo box is as follows:
SELECT Tble_Doctors.GMC_ID, [First_Name] & " " & [Last_Name] AS Appraiser, Tble_Doctors.AppraiserNotes
FROM Tble_Doctors AS Tble_Doctors
WHERE (((Tble_Doctors.First_Name)<>[forms]![appraisals form]![first_name]) AND ((Tble_Doctors.Last_Name)<>[forms]![appraisals form]![last_name]) AND ((Tble_Doctors.Appraiser)=True))
ORDER BY Tble_Doctors.First_Name;
Since a doctor cannot appraise themselves, I need to exclude the name from the list when it comes to the appropriate main form record.
At the moment I have this:
Forms![appraisals form]![appraisals subform].Form![Appraiser_ID].Requery
I have tried other variations and even changed the event but nothing seems to work. If the query can be improved, let me know.
Cheers