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

مساعد في تحويل متغير من رقمي الى نصي في الكود


إذهب إلى أفضل إجابة Solved by jjafferr,

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

السلام عليكم ,,,,,,,,

اذا كان الحقل virusid في الكود نصي وليس رقمي  فكيف ستكون كتابة المعادلة

Dim X As Integer
X = DCount("[virusid]", "[TBvirus]", "[virusid]=" & Me.idvirus & " AND [idlaboratory]=Forms![Flaboratory]![idlaboratory]")
If X > 0 Then
MsgBox "error87", 48, "error"
DoCmd.CancelEvent
End If

 

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

  • أفضل إجابة

وعليكم السلام 🙂

Dim X As Integer
X = DCount("*", "[TBvirus]", "[virusid]='" & Me.idvirus & "' AND [idlaboratory]=Forms![Flaboratory]![idlaboratory]")
If X > 0 Then
MsgBox "error87", 48, "error"
DoCmd.CancelEvent
End If

 

جعفر

  • Thanks 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