|
Private Sub CmdBookInMsgSave_Click()
Dim rs As New ADODB.Recordset
Dim cnn As New ADODB.Connection
Dim strSql As String
Set cnn = CurrentProject.Connection
strSql = "select * from 受订 where 受订单号='" & Me.受订单号 & "'"
rs.Open strSql, cnn, adOpenKeyset, adLockOptimistic
If IsNull(Me.数量) Or IsNull(Me.受订单号) Then
MsgBox "数量,受订单号,不可为空!!"
Me.CmdsdInput.SetFocus
Else
rs.Fields("结案") = True
rs.Fields("已交数") = Me.数量
rs.Update
rs.Close
Set rs = Nothing
Set cnn = Nothing
End If
End Sub |
|