By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 664 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

Counting number of records with the same entry

P: 16
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?
Oct 30 '06 #1
Share this Question
Share on Google+
1 Reply


NeoPa
Expert Mod 15k+
P: 31,342
Expand|Select|Wrap|Line Numbers
  1. SELECT Count([LNumber]) AS LNCount
  2. FROM [YourTable]
  3. GROUP BY [LNumber]
Oct 30 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.