or 加上括号
If (e.Form.Controls("DateTimePicker1").value =Nothing Or e.Form.Controls("DateTimePicker2").value =Nothing)