Select Case e.DataCol.Name Case "Y" With CurrentTable Dim r As Date = Date.Today If e.DataRow.IsNull("Y") = False Then .Current("Z")=r.AddDays(7) End If End WithEnd Select
参考:
http://www.foxtable.com/help/topics/1470.htm