Hi All,
I am creating a movie database for my aunt's business that will help her keep track of her rentals. One of the things she would like to do is to have a count of the total number of times a movie title was rented. She has a library of over 1700 movies at the moment, and some of them have the same title. For example, movie numbers 1700, 1701, 1702, and 1703 all have the same title (for example: "Shrek"
I created a set of procedures (and forms, and queries, etc) that allow her to enter a movie to be checked out. It then writes an entry into what I call a transaction table. It contains the movie id, date, and a few other fields.
I generated a query on the transaction table to list all of the movies that were rented and set the "Group By"->Count. This will generate a count of the number of like movie ids. So,in the Shrek example, each movie shows up (1700, 1701, 1702, etc) with the number of times each of them were rented.
My question is this: How can I combine the total count for each movie title (ie. the count of 1700 + the count of 1701 + the count of 1702) in a query and use it in a form. I am attempting to do this in a form "On Load" event procedure (for displaying a "top 10 rentals", but I am not fluent enough in VBA yet.
Any help would be greatly appreciated.
Thanks,
TheKepper
I am creating a movie database for my aunt's business that will help her keep track of her rentals. One of the things she would like to do is to have a count of the total number of times a movie title was rented. She has a library of over 1700 movies at the moment, and some of them have the same title. For example, movie numbers 1700, 1701, 1702, and 1703 all have the same title (for example: "Shrek"
I created a set of procedures (and forms, and queries, etc) that allow her to enter a movie to be checked out. It then writes an entry into what I call a transaction table. It contains the movie id, date, and a few other fields.
I generated a query on the transaction table to list all of the movies that were rented and set the "Group By"->Count. This will generate a count of the number of like movie ids. So,in the Shrek example, each movie shows up (1700, 1701, 1702, etc) with the number of times each of them were rented.
My question is this: How can I combine the total count for each movie title (ie. the count of 1700 + the count of 1701 + the count of 1702) in a query and use it in a form. I am attempting to do this in a form "On Load" event procedure (for displaying a "top 10 rentals", but I am not fluent enough in VBA yet.
Any help would be greatly appreciated.
Thanks,
TheKepper