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

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

قام بنشر

إخواني الأعزاء أعضاء المنتدي الكرام  بعد سلام الله عليكم ورحمة الله وبركاته

 

في الكود هذا عايز  اقول لو  termNum =2

يعطينيMe.tsmya2Caption = "الدور الأول"    وإلا      "الدور الثاني"

 

Private Sub Report_Open(Cancel As Integer)
Dim i, ii As String
i = Forms!frm_Reports!ComboSaf.Column(1)
ii = Forms!frm_Reports!termNum.Column(1)
Me.tsmya1.Caption = funSanahDrasyahDate()
Me.tsmya2.Caption = " الدور الأول"
DoCmd.Maximize
End Sub

 

  • تمت الإجابة
قام بنشر

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

 

ملاحظة مهمة بخصوص المتغيرين i و ii :-

حيث تم تعريفهما كـ String ، بينما من الواضح ( وبناءً على ما أذكر من مشاركات سابقة ) أنهما يمثلان رقم الترم المخزن في العمود الأول (Column(0)) من الـ ComboBox . صحيح ؟؟

 

Private Sub Report_Open(Cancel As Integer)
    Dim i As Long, ii As Long
    i = Forms!frm_Reports!ComboSaf.Column(0)
    ii = Forms!frm_Reports!termNum.Column(0)
    
    Me.tsmya1.Caption = funSanahDrasyahDate()
    If ii = 2 Then
        Me.tsmya2.Caption = "الدور الأول"
    Else
        Me.tsmya2.Caption = "الدور الثاني"
    End If

    DoCmd.Maximize
End Sub

 

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