اتفضل استاذ @haniameen تم انشاء موديول كالتالى Public Function GetCountKind(strCode As Integer, strMale As Integer) As Integer 'لعدد الذكور والاناث GetCountKind = DCount("*", "sheet", "[dept_code] = " & strCode & " and [c_male]=" & strMale) End Function Public Function GetCountReligion(strCode As Integer, strReligion As Integer) As Integer 'لعدد المسلمين والمسيحين GetCountReligion = DCount("*", "sheet", "[dept_code] = " & strCode & " and [c_moslem]=" & strReligio
    • Like
    1