I have an Employee information form with a time off sub form. The sub form has the fields Date, Reason (vacation, Sick, Personal, or Other), and notes. I need a "vacation days left" field in the main form that calculates the total days off for each category and subtracts it from the allowed for that category.
Basically I need to translate this literal verbal equation into a workable Access function: "Count all entries where reason equals vacation (or sick, etc.) and subtract from total allowed". That seems simple enough, but I know very little about built in functions for calculations, but there is also a kicker. I also have a "vacation reset date" field that I need to automatically change to one year later once the previous date has passed. Then I need to filter the sub form to only display records after that date and count only those records (with an option to view all records if necessary) How would I go about doing this, preferably without writing VBA code, which I know even less about?
I will be doing a lot more, that I'm sure I will need help on, with this form once this task is figured out, so if anyone is interested in helping me personally please let me know.
Basically I need to translate this literal verbal equation into a workable Access function: "Count all entries where reason equals vacation (or sick, etc.) and subtract from total allowed". That seems simple enough, but I know very little about built in functions for calculations, but there is also a kicker. I also have a "vacation reset date" field that I need to automatically change to one year later once the previous date has passed. Then I need to filter the sub form to only display records after that date and count only those records (with an option to view all records if necessary) How would I go about doing this, preferably without writing VBA code, which I know even less about?
I will be doing a lot more, that I'm sure I will need help on, with this form once this task is figured out, so if anyone is interested in helping me personally please let me know.