total # of records in a report

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • burger54
    New Member
    • Jan 2008
    • 12

    total # of records in a report

    is there a simple way to attach the total number of records in a report to a text box on the report? I tried using the count function in the expression builder, but it returns the number 70 even thought there are only 2 records. I am using access 2000.
    Thanks in advance
  • maxamis4
    Recognized Expert Contributor
    • Jan 2007
    • 295

    #2
    Need more info but as long as you enter count([variable in your report]) in the group footer than it should count.

    Comment

    • ADezii
      Recognized Expert Expert
      • Apr 2006
      • 8834

      #3
      Originally posted by burger54
      is there a simple way to attach the total number of records in a report to a text box on the report? I tried using the count function in the expression builder, but it returns the number 70 even thought there are only 2 records. I am using access 2000.
      Thanks in advance
      If the Record Source for your Report is a 'Table' or 'Stored Query', place the following Expression in the Control Source Property for a Text Box placed anywhere on the Report:
      [CODE=vb]=DCount("*", "<Record Source of Report>")[/CODE]

      Comment

      Working...