اذهب الي المحتوي
أوفيسنا

الردود الموصى بها

قام بنشر

ممكن تضع مرفق للتغيير عليه

On Error GoTo err:
DoCmd.RunCommand acCmdSaveRecord

DoCmd.GoToRecord , , acNewRec

Exit Sub
err:
If err.Number = 3022 Then
       MsgBox "الرقم الذاتي مكرر", vbCritical + vbMsgBoxRight, "خطأ"
    Else
       MsgBox err.Description
End If

او قد يستطيع هذا الكود لمعالجة الخطأ مساعدتك لكن يفضل وجود مرفق

  • Like 3

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • اضف...

Important Information