DB_Queen
New member
- Local time
- Today, 14:42
- Joined
- Sep 20, 2021
- Messages
- 22
Hello experts.
I have a report that I am trying to create that shows someone's work status on a weekly basis. It is grouped by employee and the query pulls all records in the associated table based on a date range entered by the user.
I have two text boxes in the group footer that display a count of records in the detail section - let's call them txtONE and txtTWO - and a checkbox on group header that will be either TRUE or FALSE depending on the employee's schedule type.
I have a third unbound text field in the group header - let's call it txtSTATUS - that I would like to display text based on the following:
If the checkbox is TRUE, THEN
If the value of txtONE is =>3, txtSTATUS will display "Out of the Office"
If the value of txtTWO is =>3, txtSTATUS will display "Teleworking"
Otherwise txtSTATUS will display "In The Office"
If the checkbox is FALSE, THEN
If the value of txtONE is =>1, txtSTATUS will display "Out of the Office"
If the value of txtTWO is =>1, txtSTATUS will display "Teleworking"
Otherwise txtSTATUS will display "In The Office"
I have never created a conditional formatting formula this complex before. I attempted to use VBA to accomplish this but it only applies the code to the first group of the report and then repeats it for every subsequent group.
Appreciate any feedback or advise you have to share. Thank you
I have a report that I am trying to create that shows someone's work status on a weekly basis. It is grouped by employee and the query pulls all records in the associated table based on a date range entered by the user.
I have two text boxes in the group footer that display a count of records in the detail section - let's call them txtONE and txtTWO - and a checkbox on group header that will be either TRUE or FALSE depending on the employee's schedule type.
I have a third unbound text field in the group header - let's call it txtSTATUS - that I would like to display text based on the following:
If the checkbox is TRUE, THEN
If the value of txtONE is =>3, txtSTATUS will display "Out of the Office"
If the value of txtTWO is =>3, txtSTATUS will display "Teleworking"
Otherwise txtSTATUS will display "In The Office"
If the checkbox is FALSE, THEN
If the value of txtONE is =>1, txtSTATUS will display "Out of the Office"
If the value of txtTWO is =>1, txtSTATUS will display "Teleworking"
Otherwise txtSTATUS will display "In The Office"
I have never created a conditional formatting formula this complex before. I attempted to use VBA to accomplish this but it only applies the code to the first group of the report and then repeats it for every subsequent group.
Appreciate any feedback or advise you have to share. Thank you