I need to comfigure the following in the Report Footer section of my report for each month of the year:
In the control source of a text box, I need to write code that does the following math:
(31 - Sum(Holidays_Month)) * txtBasePerDay
where month = 'January'
31
- Is the number of days in that particular month.
Holidays_Month
- Holidays_Month needs to be a query where I can get
the sum of the field Holidays_Month
where Holiday_Month = 'January'
txtBasePerDay
- Is a textbox on the form (just above this one), that has a value I need to reference.
I hope someone can assist me. I am really stumped.
In the control source of a text box, I need to write code that does the following math:
(31 - Sum(Holidays_Month)) * txtBasePerDay
where month = 'January'
31
- Is the number of days in that particular month.
Holidays_Month
- Holidays_Month needs to be a query where I can get
the sum of the field Holidays_Month
where Holiday_Month = 'January'
txtBasePerDay
- Is a textbox on the form (just above this one), that has a value I need to reference.
I hope someone can assist me. I am really stumped.