This query wont work with a LEFT JOIN, I get a "JOIN expression not supported" alarm... Works fine with an INNER though...
Basically, not every staff member has an allocation to a team, but I still want to see their records. Maybe theres another way to do this if access doesnt support Left Joins?
SELECT staff.EIN, staff.full_name, staff.email_address, role.role_name, team.team_name
FROM (((
staff
INNER JOIN role
ON staff.role_id = role.role_id
)
LEFT JOIN allocation_to_team
ON staff.EIN = allocation_to_team.EIN
)
INNER JOIN team
ON allocation_to_team.team_id = team.team_id
)
WHERE (((staff.EIN)=[Forms]![frmSearchUser]![cmbUser]));
Basically, not every staff member has an allocation to a team, but I still want to see their records. Maybe theres another way to do this if access doesnt support Left Joins?
SELECT staff.EIN, staff.full_name, staff.email_address, role.role_name, team.team_name
FROM (((
staff
INNER JOIN role
ON staff.role_id = role.role_id
)
LEFT JOIN allocation_to_team
ON staff.EIN = allocation_to_team.EIN
)
INNER JOIN team
ON allocation_to_team.team_id = team.team_id
)
WHERE (((staff.EIN)=[Forms]![frmSearchUser]![cmbUser]));