I've made many changes to your Database, some of which I'll point out here, and I'll also make certain notations. The rest will be up to you. Study the Attachment for details.
- CalcDueDate() is now a Public Function in the SendMail Module.
- [cboTASKTYPE] is now Bound to [TASKTYPE]
- [DATEREVIEWASSIG NED] is now Bound to [DATEREVIEWASSIG NED]. It's Control Source equal to the Function has been removed.
- Look at the same code in the AfterUpdate() Event of [cboTASKTYPE] and [DATEREVIEWASSIG NED] to see how [DATEREVIEWDUE] is populated.
- You must Reset the Reference to your Outlook Object Library.
- As previously indicated, code in the AfterUpdate() Events of [cboTASKTYPE] and [DATEREVIEWASSIG NED] calculates the correct Value to the [DATEREVIEWDUE] Field. Short of restructuring, you must be very careful which Records in the Sub-Forms are selected before you populate either Field, or the wrong Values will be set in the incorrect Sub-Form Record. This must be fixed by you.
- Study the Attachment carefully.
Comment