Hi @angelo garcia
you are comparing a dateTime or date is greater than a year value.
You have to compare 2 values of the same type.
If you gonna get the year from the current Date you have to get the year from the PersonForm.Record.Person.DateofBirth.
Or you put only the year from the 2 dates like this:
Year(CurrDate())>Year(CurrDate())
Or with date type like this
PersonForm.Record.Person.DateofBirth < Currdate().
Remember you can only compare 2 values from the same type