改成这样
Dim bdrq As Date=e.Form.Controls("bangdingshijianDate").value If bdrq <> Nothing Then e.Form.Controls("youxiaoqizhiDate").value =bdrq.AddYears(1)End If