|
On Error GoTo ErrHandle Dim Count As Integer Count = 0 With Me..Form.RecordsetClone .MoveFirst Do Until .EOF If IsNull(![]) Or IsNull(![]) Then Count = Count + 1 End If .MoveNext Loop End With Me. = Forms![EzhetOtchet]![].Form![] ErrHandle: If Count = 0 Then If Me..Value <> "" Then 'If (Count = 0) And ((45 - RepItog) > 0) Then If MsgBox(" ?", vbYesNo) = vbYes Then If <= 8 Then If > 0 Then DoCmd.SetWarnings False DoCmd.OpenQuery "", , acEdit DoCmd.OpenQuery "", , acEdit MsgBox " . !", vbOKOnly DoCmd.SetWarnings True .Requery DoCmd.Close acForm, "EzhetOtchet", acSaveYes Else MsgBox " . 8 . ", vbOKOnly End If End If End If Else: MsgBox " . . : ;" _ & " ;" _ & " ;" _ & " , , - " MsgBox " "" "", , , . , , " 23.Enabled = False End If Else MsgBox " . " With Me..Form.RecordsetClone .MoveFirst Do Until .EOF .Delete .MoveNext Loop End With Me.Undo DoCmd.Close acForm, "EzhetOtchet", acSaveNo End If
http://www.sql.ru/forum/1247643/ne-sohranyaetsya-zapis-v-glavnoy-tablice