Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
已经用身份证号两个表建立了关联,
我在身份证表的DataColChanged事件中设置了跨表引用代码,
想把已寄出表上的数据列同步,但是好像不起作用。
下载信息 [文件大小: 下载次数: ] | |
![]() |
正确代码:
If e.DataCol.Name = "身份证号" Then
If e.NewValue Is Nothing Then
e.DataRow("数据列") = Nothing
Else
Dim dr As DataRow
dr = DataTables("已寄出").Find("[身份证号] = '" & e.NewValue & "'")
If dr IsNot Nothing Then
e.DataRow("数据列") = dr("数据列")
End If
End If
End If
设置完整后,重置一下身份证号码列。
谢了~~~~
很好用~~~
原来自己写错代码了