Report or Query to show First & Last Date Item is rented

M

mariaa

I am trying to figure out how so calculate the number of times an item has
been rented as well as the first date it was rented and last date it was
rented.

Equipment # of Rentals First Date Rented Last Date Rented

What would be the best way to go about getting this data
 
F

fredg

I am trying to figure out how so calculate the number of times an item has
been rented as well as the first date it was rented and last date it was
rented.

Equipment # of Rentals First Date Rented Last Date Rented

What would be the best way to go about getting this data

Create a query to use as the report's recordsource.

SELECT YourTable.Equipment, Count(YourTable.Equipment) as
NumOfRentals, Min(YourTable.RentDate) AS FirstRented,
Max(YourTable.RendDate) AS LastRented
FROM YourTable
GROUP BY YourTable.Equipment;
 
M

mariaa

WOW. That is perfect and so simple. Thank you.

fredg said:
Create a query to use as the report's recordsource.

SELECT YourTable.Equipment, Count(YourTable.Equipment) as
NumOfRentals, Min(YourTable.RentDate) AS FirstRented,
Max(YourTable.RendDate) AS LastRented
FROM YourTable
GROUP BY YourTable.Equipment;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top