Counting number of records with the same entry

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KelHemp
    New Member
    • Oct 2006
    • 16

    Counting number of records with the same entry

    I'm trying to count the number of records within a form (and report) that have the same number in the "LNumber" field.

    If I had a set number I wanted, I'd just run a single query, but the number changes many times in a set of 30 or so records.

    There's probably a way to count them at every individual record, but I don't see that as an efficient way to handle this.

    Is there any way I can have an all-inclusive event to handle this?
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32633

    #2
    Code:
    SELECT Count([LNumber]) AS LNCount
    FROM [YourTable]
    GROUP BY [LNumber]

    Comment

    Working...