I am trying to write a complicated date calculation. I am an attorney writing a DB for myoffice. I am attempting to calculate the Statute of limitations for a case. There are two complications. First, the statute does dont begin to run until the client reaches the age of 18 and second thee are different statutes for different types of cases . For example, there is a one year statue of limitations for a dafamation case, a two year statute for an auto accident and a 4 year statute for a contract action. I have solved the first issue with a calculated text box. The calculation determines the difference between date of birth and the Incident date and tells me whether or not it is less than 18. The calculation is =DateDiff("yyyy",[DOB],[IncidentDate])+Int(Format([IncidentDate],"mmdd")<Format([DOB],"mmdd")). This works perfectly. For example, my daughter's date of birth is August 28, 1985. If she were in an auto accident on August 20, 2000, this calculation would return a value of 14 in the calculated text box, telling me she was not 18 at time of acxcident and that the statue of limitations would not begin to run til she reached 18. It is the second issue I need help with.
I have the following relevant fields in my form. I have a Birthdate Field(DOB), an incidentdate field(Incidentdate), a statute of limitations field(SOL) whicd records whether the statute is 1 year, 2 years or 4 years and the statute date field(Statutedate) and my calculated teaxbox that I described above (Text19). I need to write code for my statutedate field which says the following: "If Text19 is < 18 Statutedate =DOB +SOL + 18, otherwise, StatuteDate =IncidentDate + SOL"
Can anyone help me with this code. I want to put it in the after update event of the Statute of Limitations(SOL) field. Thank you
I have the following relevant fields in my form. I have a Birthdate Field(DOB), an incidentdate field(Incidentdate), a statute of limitations field(SOL) whicd records whether the statute is 1 year, 2 years or 4 years and the statute date field(Statutedate) and my calculated teaxbox that I described above (Text19). I need to write code for my statutedate field which says the following: "If Text19 is < 18 Statutedate =DOB +SOL + 18, otherwise, StatuteDate =IncidentDate + SOL"
Can anyone help me with this code. I want to put it in the after update event of the Statute of Limitations(SOL) field. Thank you