I have a STAFF table that has a pk called staff_id and I have another table EVENTS that has 3 staff fields because on any given transaction up to 3 people from the STAFF table could be involved. I can run this query in sql server but I can't get it right in Access. Here is my sql server query
select staff.name, staff2.name as name2, staff3.name as name3,Events.event_id,events.date
from Events
INNER JOIN STAFF ON events.staff_id = Staff.Staff_ID
INNER JOIN STAFF as staff1 ON events.staffa = staff1.Staff_ID
INNER JOIN STAFF as staff2 ON events.staffb = staff2.Staff_ID
where Events.events_id = ' " & cmbevent & " '
aspvbwannab
select staff.name, staff2.name as name2, staff3.name as name3,Events.event_id,events.date
from Events
INNER JOIN STAFF ON events.staff_id = Staff.Staff_ID
INNER JOIN STAFF as staff1 ON events.staffa = staff1.Staff_ID
INNER JOIN STAFF as staff2 ON events.staffb = staff2.Staff_ID
where Events.events_id = ' " & cmbevent & " '
aspvbwannab