怎样可以在别的数据库查找数据,比如我有2020帐套.MDB和2021帐套.MDB 数据库,表的结构是完全一样
If e.DataCol.name = "销方名称" Then
If e.DataRow.IsNull("销方名称") Then
e.DataRow("fa piao摘要") = Nothing
e.DataRow("借方代码") = Nothing
Else
Dim dr As DataRow = e.DataTable.SQLFind("销方名称 = '" & e.DataRow("销方名称") & "'","开piao日期 DESC")
If dr IsNot Nothing Then
e.DataRow("fa piao摘要") = dr("fa piao摘要")
e.DataRow("借方代码") = dr("借方代码")
End If
End If
End If