If e.DataCol.Name = "识别号" Then
Dim nms() As String = {"供货单位","入库时间"}
If e.NewValue Is Nothing Then
For Each nm As String In nms
e.DataRow(nm) = Nothing
Next
Else
Dim dr As DataRow
dr = DataTables("入库明细").Find("[识别号] = '" & e.NewValue & "'")
If dr IsNot Nothing
For Each nm As String In nms
e.DataRow(nm) = dr(nm)
Next
End If
End If
End If
以上代码如何让“物料计划”表里面的入库时间自动提取“入库明细”表里面的最后一次入库时间,求代码。谢谢!