G
Guest
I have a table that lists a number of transactions for recording the rental of inventory items
Basically, at times the users would like to know the last time a piece of inventory item was rented, which would then also retirieve the time and date that the item is supposed to be returned.
I have the following fields in the table. TransactionID, ItemName, RenterName, StartRentalDate,EndRentalDate and TransactionType (i.e. Rental VS Return)
Let's say for example, someone comes to me and wants to rent a TV. I need to be able to QUERY the transaction table and find the last time that particular item was rented, when it was rented and when that item will be returned. The reason for this is that I would like to pull this information from within a form (basing a FORM on a QUERY)
But I am not sure how to pull the Last record for the item from the table. I tried the LAST option, but it wouldn't work. Basically, I will need to know the ItemName from the user (Combo Box selection), then allow me to find the last time that Item was rented and when it will be returned
THANKS,
Basically, at times the users would like to know the last time a piece of inventory item was rented, which would then also retirieve the time and date that the item is supposed to be returned.
I have the following fields in the table. TransactionID, ItemName, RenterName, StartRentalDate,EndRentalDate and TransactionType (i.e. Rental VS Return)
Let's say for example, someone comes to me and wants to rent a TV. I need to be able to QUERY the transaction table and find the last time that particular item was rented, when it was rented and when that item will be returned. The reason for this is that I would like to pull this information from within a form (basing a FORM on a QUERY)
But I am not sure how to pull the Last record for the item from the table. I tried the LAST option, but it wouldn't work. Basically, I will need to know the ItemName from the user (Combo Box selection), then allow me to find the last time that Item was rented and when it will be returned
THANKS,