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

دالة dcount حسب الصفحة


إذهب إلى أفضل إجابة Solved by Eng.Qassim,

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

  • أفضل إجابة

لحساب عدد السجلات في كل صفحة اعمل مربع نص في صفحة التقرير ..قم بتسميته مثلا txtPageCount

اجعل التنسيق له قياسي Format=standard

image.png.a41c5f98214c0ccb37bff83d1198e2dd.png

ثم قم بنسخ الاكواد التالية :

Option Compare Database
Option Explicit
Public intPageCount As Integer

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
intPageCount = intPageCount + 1
End Sub

Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer)
    txtPageCount = intPageCount
    intPageCount = 0
End Sub

Private Sub Report_Open(Cancel As Integer)
intPageCount = 0
End Sub

 

  • Thanks 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