mhaccessnov
New member
- Local time
- Today, 13:00
- Joined
- Aug 22, 2013
- Messages
- 9
Hello,
I have an access database with 2 tables and one relationship. I am trying to create a view that will give me the "latest and greatest" but also with specific details pertaining to a column called location.
So I have Date Assigned, Employee, and Descriptive Name of Equipment... but I am trying to incorporate "Location" or "Worksite" as well but everytime I do using "Max" it takes the higher occuring string value and replaces the other values with this one... That is not what I am trying to do..
Here is my Query and I am trying to make this work ...
SELECT tblEquipment.BarcodeId, Max(tblEquipment.[Descriptive Name]) AS [Equipment Description], Max(tblEquipment.[Date Assigned]) AS [Assigned Date], Max(tblEmployee.Employee) AS Employee
FROM tblEquipment LEFT JOIN tblEmployee ON tblEquipment.EmployeeID = tblEmployee.EmployeeID
GROUP BY BarcodeID;
I just want the latest and greatest view of equipment and who has it...
:banghead::banghead::banghead:
Thanks in advance!!
I have an access database with 2 tables and one relationship. I am trying to create a view that will give me the "latest and greatest" but also with specific details pertaining to a column called location.
So I have Date Assigned, Employee, and Descriptive Name of Equipment... but I am trying to incorporate "Location" or "Worksite" as well but everytime I do using "Max" it takes the higher occuring string value and replaces the other values with this one... That is not what I am trying to do..
Here is my Query and I am trying to make this work ...
SELECT tblEquipment.BarcodeId, Max(tblEquipment.[Descriptive Name]) AS [Equipment Description], Max(tblEquipment.[Date Assigned]) AS [Assigned Date], Max(tblEmployee.Employee) AS Employee
FROM tblEquipment LEFT JOIN tblEmployee ON tblEquipment.EmployeeID = tblEmployee.EmployeeID
GROUP BY BarcodeID;
I just want the latest and greatest view of equipment and who has it...
:banghead::banghead::banghead:
Thanks in advance!!