上午8:58分,我在群里就回了的,老程居然只管提问,不看回复。

金亿通(475361999) 08:57:25
但是运行时这个代码出错:
If e.DataCol.Name = "上级项目名称" Then
Dim dr As DataRow
dr = DataTables("项目明细").Find("[工程序号] = '" & Tables("项目信息").Current("序号") & "' and [项目名称] = '" & e.datarow("项目名称") & "'")
if dr.IsNull("项目名称") then
e.datarow("选择标记") = False
else
e.datarow("选择标记") = true
end if
end if
贺老六(84069599) 08:58:38
If e.DataCol.Name = "上级项目名称" Then
Dim dr As DataRow
dr = DataTables("项目明细").Find("[工程序号] = '" & Tables("项目信息").Current("序号") & "' and [项目名称] = '" & e.datarow("项目名称") & "'")
If dr isnot Nothing Then
if dr.IsNull("项目名称") then
e.datarow("选择标记") = False
else
e.datarow("选择标记") = true
end if
End If
end if
[此贴子已经被作者于2009-5-8 14:48:13编辑过]