|
呵呵,藏起来了- Private Sub Form_Current()
- Dim bln As Boolean
- Dim rs As New ADODB.Recordset
- Dim strSQL As String
- bln = True
- strSQL = "select 处理结果 from 表2 where 单据='" & Me.单据 & "'"
- rs.Open strSQL, CurrentProject.Connection, adOpenKeyset, adLockReadOnly
- Do While Not rs.EOF
- If rs.Fields(0) <> "OK" Or IsNull(rs.Fields(0)) Then
- bln = False
- Exit Do
- End If
- rs.MoveNext
- Loop
- If bln Then
- Me.总结果 = "OK"
- Else
- Me.总结果 = "Not OK"
- End If
- rs.Close
- Set rs = Nothing
- End Sub
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|