http://www.foxtable.com/help/index.html?n=2720.htm
表DataColChanged事件,大概这样写,供参考,可能运行不了,修改修改~
Select Case e.DataCol.Name
Case "转账日期"
If e.NewValue Is Nothing Then
e.DataRow("所属日期结束") = Nothing
Else
dim dt as date = e.DataRow("转账日期")
dim y as Integer = dt.year
dim m as integer = dt.month
Dim dt2 As New Date(y, m, Date.DaysInMonth(y,m)) '获取该月的最后一天
e.DataRow("所属日期结束") = dt2
End If
End Select