There is the code for the query. I want to see just the person(s), their
department, and the ComputerID. If a person is in more than one department.
I just want him/her listed once with just the first department they are in.
In a Table there IS NO "first". A table is an unordered heap of data.
The First TOTALS operator gets the first record in disk storage order,
but that order is basically arbitrary and uncontrollable - so it will
just pick one of the departments.
Try using a Totals query and use First for the department:
SELECT DISTINCT Employees.LastName, First(Departments.Department) AS
FirstOfDepartment, [Computer Information].[Computer ID]
FROM ([Computer Information] INNER JOIN (Departments INNER JOIN
DepartmentAssignments ON Departments.DepartmentID =
DepartmentAssignments.DepartmentID) ON [Computer
Information].EmployeeID = DepartmentAssignments.EmployeeID) INNER JOIN
Employees ON [Computer
Information].EmployeeID = Employees.EmployeeID
GROUP BY Employees.LastName, [Computer Information].[ComputerID]
WHERE ((([Computer Information].Model)="Dimension 4300c"));
Since it's just one arbitrary department, I wonder why it's needed in
the query at all, but that will do it for you.
John W. Vinson[MVP]