In my project there is a mastertable which contains several detail tables. Each entry in the master table is provided with a date in a field that saves the date of the entry. (add=()now)
A further field of the master table indicates the processing state of the data record, the value of this field can be:
- "open"
- "in progress"
- "completed"
If the value of the field is "Completed", the date of the entry is set in another field of the mastertable.
In the detailed tables, values are recorded with the respective current date of entry.
I am looking for a solution to two questions:
- If the value of the field is "completed", editing the detail tables should be prevented.
- The date of the entries in the detail tables must not be earlier than the date of entry in the master table.
Does anyone have any idea how to realize this?
Thank you in advance!