Hi Wilkies,
Ill give you a run down of my form.
I have created an employee record form to capture all employee details, the form includes the capture of any machine operator and drivers licences tickets along with about 30 other licences.
Many of these licences expire at various times i.e Our mine site operator tickets expire after approximately 2 years, our mine site medicals expire after only 28 days.
In order to accurately alert someone that a ticket has expired and remove the licence from their employee record (as its expired) I have created fields that capture the date in which the operators ticket or medical were attained.
In a separate hidden view I have validation that grabs today's date when the form opens (today()) and runs a calculation on the date they acquired the operator ticket and medical vs today's date.
This calculation spits out if they have a valid licence or medical or not. (if they do not have a valid licence or medical the field that is mapped to the form library column is displayed as blank) If it is valid, the word "valid" is displayed.
I have completed the validation inside the form an alternative to completing it inside the library to resolve 3 problems.
1. To keep the number of columns published to the library down to a minimum. (the expiry column on every record does not need to be published)
2. So that the form has the ability to remove or change details inside an employee record if the licence has expired
3. To make the filtering of the library easier, the user will only need to filter by "valid" or "expired"
The issue I have with a calculated columns in this instance;
1. It cannot remove expired records/licences from the form.
2. It would require all expiry fields to be published to columns in the library
3. It would require the end user who is looking for employee's with valid licences to run through the records to find an employee with non-expired tickets, rather than using a filter to remove them completely.
I know there is multiple different ways to tackle the problem I have.
I am open to suggestions and ideas and may inevitably need to run down the calculated column path if I cannot find a way to pull the current today's date from share point into the form and have it automatically update the records on a nightly basis.
Thanks in advance.
Hyp