Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
下载信息 [文件大小: 下载次数: ] | |
点击浏览该文件:日期计算2.table |
楼上代码应该加个判断
If e.DataCol.Name = "编号" And e.DataRow.IsNull("编号") = False Then
Dim dr1 As DataRow = e.DataRow
Dim dr As DataRow = DataTables("表B").Find("编号 = '" & dr1("编号") & "'")
Dim t As TimeSpan = Date.Today - CDate(dr("日期"))
If dr IsNot Nothing Then
dr1("表B日期距今天数") = t.TotalDays
End If
End If
不好意思,又搞得C版主深夜操劳。感谢感谢!