rstwo.Open "select*from BOM修改表"
rsthree.Open "select*from 版本号更新表"
While rsthree.EOF
While rstwo.EOF
If rsthree("零件号") = rstwo("零件号") Then
rsthree("零件图纸版本号") = rstwo("零件图纸版本号")
Else
End If
rstwo.MoveNext
Wend
rsthree.MoveNext
Wend
rstwo.Close
Set rstwo = Nothing
rsthree.Close
Set rsthree = Nothing