IF EMPTY(this.txtDateTo.Value) *-- If the To date is empty, return a value in the distant future RETURN date() + 100000 ELSE RETURN this.txtDateTo.Value ENDIF