Dim wz As Integer Dim dr As DataRow If Tables("表A.表B").Current IsNot Nothing then dr = DataTables("表B").Find("[项目序号] = '" & Tables("表A.表B").Current("项目序号") & "'") If dr IsNot Nothing Then wz = Tables("表B").FindRow(dr) If wz >= 0 Then Tables("表B").Position = wz End If End If End If