Dim Filter As String = "(合同状态 = '执行中' or 合同状态 is null)"
改成
Dim Filter As String = "(合同状态 = '执行中' or 合同状态 is null) and 年份 >= '" & Date.Today.Year-3 & "'"