أشكرك أخي الكود اشتغل معي100% بعدني اتعبك معي هل ممكن تشرح لي الكود الاول والثاني
If SERIAL = Me.CMBSERIAL.Column(0) And Not Me.NewRecord Then
Me.CMBSERIAL.Undo
Me.Undo
Exit Sub
End If
If SERIAL = Me.CMBSERIAL.Column(0) And Not Me.NewRecord Then
Me.CMBSERIAL.Undo
Me.Undo
MsgBox "هذا الجهاز مسجل مسبقاً", vbInformation, "تنبيه التكرار"
DoCmd.FindRecord cmbrecord
Exit Sub
End If
If Me.IDE = DLookup("IDE", "EMPDEV", "[IDE] = " & Me.IDE) Then
Me.CMBSERIAL.Undo
Me.Undo
MsgBox "هذا الاسم مسجل مسبقا", vbInformation, "تنبيه تكرار"
Exit Sub
Else
MsgBox "تم"
End If
لاني مبتدي في الاكسس وجزاك الله خيراً