请教老师:
A表的数据通过跨表引用和自动更新,通过客户编号引入到B表了,现在还想把C表某列的数据引入到B表的同名列
但是A表和C表的引入条件都是以A表的客户编号为条件,不知怎么弄了(A、B、C表都有同名列“客户编号”)
A表引入B表的代码:(已能实现)
If e.DataCol.Name = "客户编号" Then
If e.NewValue Is Nothing Then
e.DataRow("下单日期") = Nothing
e.DataRow("客户名称") = Nothing
e.DataRow("订单金额") = Nothing
Else
Dim dr As DataRow
dr = DataTables("订单").Find("[客户编号] = '" & e.NewValue & "'")
If dr IsNot Nothing
e.DataRow("下单日期") = dr("下单日期")
e.DataRow("客户名称") = dr("客户名称")
e.DataRow("订单金额") = dr("订单金额")
End If
End If
End If