SELECT [TBL Employee Details].EmpDetID, [TBL Employee Details].Title, [TBL Employee Details].[First Name(s)], [TBL Employee Details].Surname, [TBL Employee Details].Postcode, [TBL Employee Details].[Home Telephone], [TBL Training Qualifications].QuaName, [rTBL Employees-Training].[E-T FKTrainingID]
FROM [TBL Training Qualifications] INNER JOIN ([TBL Employee Details] INNER JOIN [rTBL Employees-Training] ON [TBL Employee Details].EmpDetID = [rTBL Employees-Training].[E-T FKEmployeeID]) ON [TBL Training Qualifications].TraQuaID = [rTBL Employees-Training].[E-T FKTrainingID]
Where ID Like "*" & [Forms]![iFRM 1st basic]![ID] & "*"
UNION SELECT [TBL Employee Details].EmpDetID, [TBL Employee Details].Title, [TBL Employee Details].[First Name(s)], [TBL Employee Details].Surname, [TBL Employee Details].Postcode, [TBL Employee Details].[Home Telephone], [TBL Training Qualifications].QuaName, [rTBL Employees-Training].[E-T FKTrainingID]
FROM [TBL Training Qualifications] INNER JOIN ([TBL Employee Details] INNER JOIN [rTBL Employees-Training] ON [TBL Employee Details].EmpDetID = [rTBL Employees-Training].[E-T FKEmployeeID]) ON [TBL Training Qualifications].TraQuaID = [rTBL Employees-Training].[E-T FKTrainingID]
Where firstName Like "*" & [Forms]![iFRM 1st basic]![First Name] & "*"
UNION SELECT [TBL Employee Details].EmpDetID, [TBL Employee Details].Title, [TBL Employee Details].[First Name(s)], [TBL Employee Details].Surname, [TBL Employee Details].Postcode, [TBL Employee Details].[Home Telephone], [TBL Training Qualifications].QuaName, [rTBL Employees-Training].[E-T FKTrainingID]
FROM [TBL Training Qualifications] INNER JOIN ([TBL Employee Details] INNER JOIN [rTBL Employees-Training] ON [TBL Employee Details].EmpDetID = [rTBL Employees-Training].[E-T FKEmployeeID]) ON [TBL Training Qualifications].TraQuaID = [rTBL Employees-Training].[E-T FKTrainingID]
Where lastName Like "*" & [Forms]![iFRM 1st basic]![Surname] & "*"
UNION SELECT [TBL Employee Details].EmpDetID, [TBL Employee Details].Title, [TBL Employee Details].[First Name(s)], [TBL Employee Details].Surname, [TBL Employee Details].Postcode, [TBL Employee Details].[Home Telephone], [TBL Training Qualifications].QuaName, [rTBL Employees-Training].[E-T FKTrainingID]
FROM [TBL Training Qualifications] INNER JOIN ([TBL Employee Details] INNER JOIN [rTBL Employees-Training] ON [TBL Employee Details].EmpDetID = [rTBL Employees-Training].[E-T FKEmployeeID]) ON [TBL Training Qualifications].TraQuaID = [rTBL Employees-Training].[E-T FKTrainingID]
Where title Like "*" & [Forms]![iFRM 1st basic]![title] & "*"