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

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

قام بنشر

وعليكم السلام ورحمه الله

جرب الكود التالي

Private Sub TextBox1_Change()
 If Me.TextBox1.Value > Me.TextBox2.Value Then
 CommandButton2.Enabled = False
 CommandButton28.Enabled = False
 End If
 CommandButton2.Enabled = True
 CommandButton28.Enabled = True
End Sub

Private Sub TextBox28_Change()
 If Me.TextBox1.Value > Me.TextBox2.Value Then
 CommandButton2.Enabled = False
 CommandButton28.Enabled = False
 End If
CommandButton2.Enabled = True
 CommandButton28.Enabled = True
End Sub

 

  • 3 weeks later...
  • تمت الإجابة
قام بنشر
في 1‏/5‏/2023 at 01:06, كريم نظيم said:

وعليكم السلام ورحمه الله

جرب الكود التالي

Private Sub TextBox1_Change()
 If Me.TextBox1.Value > Me.TextBox2.Value Then
 CommandButton2.Enabled = False
 CommandButton28.Enabled = False
 End If
 CommandButton2.Enabled = True
 CommandButton28.Enabled = True
End Sub

Private Sub TextBox28_Change()
 If Me.TextBox1.Value > Me.TextBox2.Value Then
 CommandButton2.Enabled = False
 CommandButton28.Enabled = False
 End If
CommandButton2.Enabled = True
 CommandButton28.Enabled = True
End Sub

 

السلام عليكم ...

شكراً استاذ كريم   تم التوصل لحل تغيير بسيظ في الكود الاصلي  .. تم وضعة للاستفادة 

If Val(Me.TextBox1.Value) > Val(Me.TextBox2.Value) Then MsgBox "احذر سعر البيع اقل من سعر الشراء": Exit Sub

 

  • Like 1

انشئ حساب جديد او قم بتسجيل دخولك لتتمكن من اضافه تعليق جديد

يجب ان تكون عضوا لدينا لتتمكن من التعليق

انشئ حساب جديد

سجل حسابك الجديد لدينا في الموقع بمنتهي السهوله .

سجل حساب جديد

تسجيل دخول

هل تمتلك حساب بالفعل ؟ سجل دخولك من هنا.

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

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

Important Information