改成
If e.Form.Controls("StartDate").value = nothing Or e.Form.Controls("EedDate").value = nothing Then