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

مشكلة في سعر البيع والشراء


إذهب إلى أفضل إجابة Solved by محمد الورفلي1,

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

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

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

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
رابط هذا التعليق
شارك

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