S
Secret Squirrel
I have a form (single view) that has 6 checkboxes that are bound to my table.
These check boxes are used as email triggers. Each check box is for each mgr
that needs to get an email notice to review that particular record. The QA
mgr checks off which managers need to review that record and then fires off
the email. The email is only sent to the mgrs who have a check in their
specified checkbox. This portion works fine. I also have 6 textboxes that are
also bound. These 6 textboxes are used for the managers to enter a date when
they reviewed that particular record. Once all the managers enter a date in
their textbox then the record needs to be reviewed one last time by the QA
mgr and then he closes that particular record.
The problem I'm having is with the email notification once all the managers
review that record. Say only 3 managers need to review it (meaning only 3
checkboxes will be true for that record), once the last manager enters his
date in the textbox I want an automatic email generated to the QA mgr to
notify him that all management has reviewed it and it's ready to be closed. I
would assume the code would need to be in the afterupdate event of each of
the textboxes. The email code I have so that's not the problem. The problem
is how do I write code (IF statement?) that looks at the checks that are
"true" and then looks at the corresponding textboxes to see if there is a
date in all 3 of them and if there is then fires the email code. How can I
set this up in vba code? Since there can be any combination of these 6
checkboxes with the corresponding textboxes I really don't know how to
proceed with this. Any help would be greatly appreciated.
SS
These check boxes are used as email triggers. Each check box is for each mgr
that needs to get an email notice to review that particular record. The QA
mgr checks off which managers need to review that record and then fires off
the email. The email is only sent to the mgrs who have a check in their
specified checkbox. This portion works fine. I also have 6 textboxes that are
also bound. These 6 textboxes are used for the managers to enter a date when
they reviewed that particular record. Once all the managers enter a date in
their textbox then the record needs to be reviewed one last time by the QA
mgr and then he closes that particular record.
The problem I'm having is with the email notification once all the managers
review that record. Say only 3 managers need to review it (meaning only 3
checkboxes will be true for that record), once the last manager enters his
date in the textbox I want an automatic email generated to the QA mgr to
notify him that all management has reviewed it and it's ready to be closed. I
would assume the code would need to be in the afterupdate event of each of
the textboxes. The email code I have so that's not the problem. The problem
is how do I write code (IF statement?) that looks at the checks that are
"true" and then looks at the corresponding textboxes to see if there is a
date in all 3 of them and if there is then fires the email code. How can I
set this up in vba code? Since there can be any combination of these 6
checkboxes with the corresponding textboxes I really don't know how to
proceed with this. Any help would be greatly appreciated.
SS