اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

كيف امنع المستخدم من اضافة صنف موجود


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

وعليكم السلام ورحمة الله وبركاتة

تفضل

Private Sub itemeid_BeforeUpdate(Cancel As Integer)
Dim x As Integer
x = DCount("[itemeid]", "[lsd]", "[itemeid]=" & Me.itemeid & " AND [listid]=Forms![lsh]![listid]")
If x > 0 Then
MsgBox "تم إدخال هذا الصنف مسبقا", 48, "تنبيه"
DoCmd.CancelEvent
Me.Undo
End If

End Sub

::بالتوفيق::

kaser906.accdb

  • Like 1
رابط هذا التعليق
شارك

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.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information