Hi all, I was hoping I would be able to come here to get some help on a database I'm currently working on.
I'm creating a rental system for a DvD shop and I need to figure out a few breakpoints to do with how long each customer can rent their share of DvDs.
Depending on how many DvDs they rent, they get to have them for longer.
< 5 DvDs = 2 nights.
5-10 DvDs = 1 week
> 10 DvDs = 2 weeks
I wanted to use a count function to count how many DvDID's each RentalID has, use these numbers with an IIF function to find out what threshold it rests in and then use them with a date function and the RentalDate field to figure out when they need to be returned.
I can't get the Count function to work in my query.
I'm using a query with only RentalID (text), DvDID (text) and I want to use a count function but every time I try I keep getting 'You tried to excecute a query that does not include the specified expression'RentID' as part of an aggregate function'. This error also happens when I try something simple like Count([RentID]).
If someone could be of assistance it would be greatly appreciated
(even if you could give some tips for the next parts)
Thanks!