N
Nikki
Hi,
I have a database that is to help me keep track of all the computer
equipment in the office. I have created a form that lets me put in the item
and then a subform records the history of the item (who has it, when they
return it and then who it is given to) The have set it up so that the
subform is a tabular type form to enable each new record to be a new line.
This all works fine.....but now I want to create a report that shows me what
items I have spare. This would be that I would want to know which items have
had a return date entered but have not yet been issued with a new user.
I thought I had it by using the following query
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)) OR
((([Users/History].[Date Issued]) Is Not Null) AND (([Users/History].[Date
returned]) Is Not Null));
....But this returns all of the items that have a return date even if they
have been assigned a new user. Is there a way around this?
Let me know if you need more information?
I have a database that is to help me keep track of all the computer
equipment in the office. I have created a form that lets me put in the item
and then a subform records the history of the item (who has it, when they
return it and then who it is given to) The have set it up so that the
subform is a tabular type form to enable each new record to be a new line.
This all works fine.....but now I want to create a report that shows me what
items I have spare. This would be that I would want to know which items have
had a return date entered but have not yet been issued with a new user.
I thought I had it by using the following query
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)) OR
((([Users/History].[Date Issued]) Is Not Null) AND (([Users/History].[Date
returned]) Is Not Null));
....But this returns all of the items that have a return date even if they
have been assigned a new user. Is there a way around this?
Let me know if you need more information?