Good day,
I have a form name Internal Audits (frmInternalAudits) that I have created to track when SOP's (Standard Operating Procedure) are due to be audited. I have the following fields:
txtAuditSubject (Short text field)
txtCurrentDate (Date field [ddmmyyyy])
txtNextReviewDate (Date field [ddmmyyyy])
txtReviewed (Yes/No field)
txtInternalAuditors (Short text field)
txtAuditoremailaddress (hprLink field)
txtSOPOwner (Short text field)
txtSOPOwneremailAddress (hprLink field)
I believe that the code I need should be written in the "On Got Focus" event, of the form.
What I would like to achieve is work out from the current date 12 months forward and enter that date in the txtNextReviewDate field.
On reaching the next review date if the txtReviewed box is ticked then the txtCurrentDate becomes the txtNextReviewDate and a new txtNextReviewDate is generated on the txtCurrentDate be updated.
I think the code for this bit would need to be written elsewhere, but to be honest I'm not sure where that should be.
Also I would like the Auditor and SOP owner to be notified four weeks and two week prior to the txtNextReviewDate that the Audit Subject is due to be audited, by opening Outlook and sending an automated email to the Auditor and Owner of the audit subject.
Also if the next review date (txtNextReviewDate) has passed without being reviewed (the txtReviewed is not ticked) I would l like an email to be generated to both the Auditor and Owner every 7 days until the Audit is completed (This will clearly only happen when the database is open, because it won't be open 24/7).
I hope I've posted this in the right place, I know I'm asking a lot and I hope there is someone that can help, which will be most appreciated.
John
I have a form name Internal Audits (frmInternalAudits) that I have created to track when SOP's (Standard Operating Procedure) are due to be audited. I have the following fields:
txtAuditSubject (Short text field)
txtCurrentDate (Date field [ddmmyyyy])
txtNextReviewDate (Date field [ddmmyyyy])
txtReviewed (Yes/No field)
txtInternalAuditors (Short text field)
txtAuditoremailaddress (hprLink field)
txtSOPOwner (Short text field)
txtSOPOwneremailAddress (hprLink field)
I believe that the code I need should be written in the "On Got Focus" event, of the form.
What I would like to achieve is work out from the current date 12 months forward and enter that date in the txtNextReviewDate field.
On reaching the next review date if the txtReviewed box is ticked then the txtCurrentDate becomes the txtNextReviewDate and a new txtNextReviewDate is generated on the txtCurrentDate be updated.
I think the code for this bit would need to be written elsewhere, but to be honest I'm not sure where that should be.
Also I would like the Auditor and SOP owner to be notified four weeks and two week prior to the txtNextReviewDate that the Audit Subject is due to be audited, by opening Outlook and sending an automated email to the Auditor and Owner of the audit subject.
Also if the next review date (txtNextReviewDate) has passed without being reviewed (the txtReviewed is not ticked) I would l like an email to be generated to both the Auditor and Owner every 7 days until the Audit is completed (This will clearly only happen when the database is open, because it won't be open 24/7).
I hope I've posted this in the right place, I know I'm asking a lot and I hope there is someone that can help, which will be most appreciated.
John