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

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

قام بنشر

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

عندي مشكلة عندما نقوم بلفتر لايتغير قيمة حقل عدد استاذ او عدد مهندس

1.jpg

2.jpg

db.rar

قام بنشر

وعليكم السلام:smile:

 

تفضل:

 


Private Sub Form_ApplyFilter(Cancel As Integer, ApplyType As Integer)

    Dim rst As DAO.Recordset
    
    ApplyType = acShowAllRecords
    
    If Len(Me.Filter & "") = 0 Then
        mySQL = "Select * From " & Me.RecordSource
    Else
        mySQL = "Select * From " & Me.RecordSource & " Where " & Me.Filter
    End If
    
    Set rst = CurrentDb.OpenRecordset(mySQL)
    rst.MoveLast: rst.MoveFirst
    RC = rst.RecordCount
    
    Me.Engineers = 0
    Me.Teachers = 0
    
    For i = 1 To RC
        
        If rst!job = "ãåäÏÓ" Then
            Me.Engineers = Me.Engineers + 1
        
        ElseIf rst!job = "ÇÓÊÇÐ" Then
            Me.Teachers = Me.Teachers + 1
        
        End If
        
        rst.MoveNext
    Next i
End Sub

Private Sub Form_Current()

    Call Form_ApplyFilter(0, 0)
End Sub

Private Sub Form_Load()

    Me.Filter = ""
    Me.FilterOn = False
    Call Form_ApplyFilter(0, 0)
End Sub

.

جعفر

564.db.accdb.zip

  • 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