Hello guys and gals, i'm new and I have a most likely dumb question. I'm very new to access and taking a class on it that requires us to create a video store that will rent out movies and video games and i'm not quite sure how to explain this. I'm having a problem with trying to get access to not allow a person to rent out a videogame or movie to a customer if they have overdue movies or videogames.
For example my Video game rental table contains this:
Code:
VGRental_ID(PK, autonumbered..This is so that each rental is unique, etc)
VGRent_Out(This is a date field and when I actually rent the videogame out to a customer)
VGRent_DateToBeReturned(This is also a date field and it's for when the videogame is suppose to be returned to the store)
VGRent_ReturnedDate(Date field in which the customer actually returns the videogame)
VG_ID (FK to a VideoGame table which has information on videogames that I have in inventory)
Person_ID (FK to a Person table in which has information on each person that frequents my videostore)
I also have a Overdue Videogames Query which tells me which videogames are overdue and who the persons are that have the videogame out.
Code:
Person_ID,
VG_ID,
VGRental_ID,
VGRent_Out,
VGR_DateToBeReturned,
VGR_Returned Date
and also a calculated field called Overdue Days which is
Overdue Days: [VGRent_ReturnedDate]-[VGRent_DateToBeReturned]
This tells me how many days that the videogame is overdue.
Now, this is where the brainfart occurs... I don't know how to tie(sorry, I know it's crappy terminology) together the Per_ID in the rental table to the Per_ID in the Overdue Videogames Query to see if a person has Overdue Days. I tried creating a macro for the add record button that went something like this
Code:
[VIDEOGAMERENTAL]![Per_ID]=[Overdue Video Game Rentals]![Per_ID] & [Overdue Video Game Rentals]![Overdue Days]>0
So if the person that is trying to check out videogames on the VIDEOGAMERENTAL form is the same person with any overdue days on the Overdue Video Game rentals query that a messagebox would appear, but that formula does not work on the macro.
I'm really sorry about how I worded this because it's really hard to explain what i'm trying to do and it may even be impossible. Any help would be appreciated.