If DCount("*", "tblWO_With_SO_Detail", "WO= Find_WO ") = 0 Then
MsgBox strName & " WO号不存在!"
Me.Find_WO.SetFocus
End If
Exit Sub ’这个就不往下执行了啊
改成
If DCount("*", "tblWO_With_SO_Detail", "WO= Find_WO ") = 0 Then
MsgBox strName & " WO号不存在!"
Me.Find_WO.SetFocus
Exit Sub
End If
就可以了 作者: yanwei82123300 时间: 2021-7-24 12:19