N
Nikki
Hi,
I don't know what this would be called so couldn't really have a discriptive
title....
I have a database where we record all of the IT equipment used in our team
at work. When someone leaves or someone new starts the database gets updated
and we can see the history of the item (who has used it in the past).
I have a table of employees, a table of the items and descriptions and
another table for recording the history.
Everything works fine for my form and most of my reports but I am wanting a
report that shows any items that are currently spare. I cannot seem to get
it to show items that have been used in the past but are now spare.
This is my current query that just shows which items have never been
assigned to someone:
SELECT [Items Details].[Item Model], [Items Details].[Item Serial Number],
[Items Details].[Item BCL Asset Number], [Users/History].[Current User],
[Users/History].[Date Issued], [Users/History].[Date returned], [Items
Details].[Item Description]
FROM [Items Details] LEFT JOIN [Users/History] ON [Items Details].[Item BCL
Asset Number]=[Users/History].ItemID
WHERE ((([Users/History].[Current User]) Is Null));
Does anyone know how I would go about making the query tell me if an item
had a current user but that they also have a returned date and now has no
current user assigned?
Any advice would be appreciated. Please let me know if you need anymore info.
Thanks
I don't know what this would be called so couldn't really have a discriptive
title....
I have a database where we record all of the IT equipment used in our team
at work. When someone leaves or someone new starts the database gets updated
and we can see the history of the item (who has used it in the past).
I have a table of employees, a table of the items and descriptions and
another table for recording the history.
Everything works fine for my form and most of my reports but I am wanting a
report that shows any items that are currently spare. I cannot seem to get
it to show items that have been used in the past but are now spare.
This is my current query that just shows which items have never been
assigned to someone:
SELECT [Items Details].[Item Model], [Items Details].[Item Serial Number],
[Items Details].[Item BCL Asset Number], [Users/History].[Current User],
[Users/History].[Date Issued], [Users/History].[Date returned], [Items
Details].[Item Description]
FROM [Items Details] LEFT JOIN [Users/History] ON [Items Details].[Item BCL
Asset Number]=[Users/History].ItemID
WHERE ((([Users/History].[Current User]) Is Null));
Does anyone know how I would go about making the query tell me if an item
had a current user but that they also have a returned date and now has no
current user assigned?
Any advice would be appreciated. Please let me know if you need anymore info.
Thanks