P
Peter
We are developing an Property Management System and there
is a linked table between Property & Employee.
The linked tables is
PropertyEmployeeID - Autonumber
PropertyID - Linked to Property Table
OwnerID - Linked to Employee Table
ControllerID - Linked to Employee Table
The OwnerID and ControllerID field can be empty. Usually,
the OwnerID field has value but the ControllerID is
optional.
I have tried the following query but are not able to get
the Employee Name unless both OwnerID and Controller field
are not null.
SELECT Employees.[FirstName] & " " & Employees.[LastName]
AS Owner, Employees_1.[FirstName] & " " & Employees_1.
[LastName] AS Controller
FROM Employees AS Employees_1, Employees, [Property
Employee] WHERE ((([Property Employee].OwnerID)=
[Employees].[EmployeeID]) AND (([Property
Employee].MaintaqnceID)=[Employees_1].[EmployeeID]));
OR should I assign a default value to both OwnerID and
ControllerID so that they point to someone named "Not
Assigned" ?
Thank you for your help.
is a linked table between Property & Employee.
The linked tables is
PropertyEmployeeID - Autonumber
PropertyID - Linked to Property Table
OwnerID - Linked to Employee Table
ControllerID - Linked to Employee Table
The OwnerID and ControllerID field can be empty. Usually,
the OwnerID field has value but the ControllerID is
optional.
I have tried the following query but are not able to get
the Employee Name unless both OwnerID and Controller field
are not null.
SELECT Employees.[FirstName] & " " & Employees.[LastName]
AS Owner, Employees_1.[FirstName] & " " & Employees_1.
[LastName] AS Controller
FROM Employees AS Employees_1, Employees, [Property
Employee] WHERE ((([Property Employee].OwnerID)=
[Employees].[EmployeeID]) AND (([Property
Employee].MaintaqnceID)=[Employees_1].[EmployeeID]));
OR should I assign a default value to both OwnerID and
ControllerID so that they point to someone named "Not
Assigned" ?
Thank you for your help.