Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Unique Values
Taruna Matharu 

5 years ago
Is there a way I can count the Member occurrence only once like unique value, in the example  I have the BP and OPG occurring twice. I need to get the total count of 7 I am getting 9.
Taruna Matharu OP  @Reply  

5 years ago

Richard Rost  @Reply  
          
5 years ago
Use an Aggregate Query
Taruna Matharu OP  @Reply  

5 years ago
I did use the Aggregate, I grouped by Member and then did Count on Member. I am trying to get the # of Members for Metrics irrelevant of the response status if Late or On Time.
Taruna Matharu OP  @Reply  

5 years ago

Taruna Matharu OP  @Reply  

5 years ago
I just need the Member count 7 on my report to calculate a percentage. In report in text box under Control source when  I add =Count(IIf([Member],"Late" Or "On Time")) it still counts 9.
Richard Rost  @Reply  
          
5 years ago
Use Dcount
Taruna Matharu OP  @Reply  

5 years ago
Hi Richard, I worked around to get the group of Members as 7 in a query thinking, that I can use that in the report via control source formula =DCount("[Member]","[MembersOnTimeJPPQRY]") but it is still giving error.
Richard Rost  @Reply  
          
5 years ago
I need more specifics. What's the error message? Rule #2.
Taruna Matharu OP  @Reply  

5 years ago

Taruna Matharu OP  @Reply  

5 years ago

Taruna Matharu OP  @Reply  

5 years ago

Taruna Matharu OP  @Reply  

5 years ago

Richard Rost  @Reply  
          
5 years ago
That's not an error message. Enter parameter value means something's probably spelled wrong.
Adam Schwanz  @Reply  
           
5 years ago
For a little more context, is this the same query we were working on HERE?
Adam Schwanz  @Reply  
           
5 years ago
You could also try using SELECT DISTINCT in the query SQL
Adam Schwanz  @Reply  
           
5 years ago
(only for getting a count)
Taruna Matharu OP  @Reply  

5 years ago
Hi Richard, The parameter value was intentional entry as I am using a it in a query to get records for a date rage for Metrics and using that result in a query,  the error I mentioned is in the report the last snip, when I am trying to get the count of the # of Members from a query sip share above.
Adam, Yes it is part of that but that was resolved using calculation in this same report. I have attached the snips.
Taruna Matharu OP  @Reply  

5 years ago

Richard Rost  @Reply  
          
5 years ago
You may run into an error if your parameter value is part of the query you're referring to in the DCount function. I'd use a form field instead. FormName
Taruna Matharu OP  @Reply  

5 years ago
Is there a way around as the 1st query has parameter for date range and the 2nd query (result of the first query)  is what I am using which also needs to be between that date range. Is it possible if only in the report we can count the member unique, no duplicates? I have attached the report snip.
Richard Rost  @Reply  
          
5 years ago
Don't use query parameters. Use form fields to supply the values. Watch the video I pointed you to.
Taruna Matharu OP  @Reply  

5 years ago
I did put this in the 1st query under the criteria for due date field and the start date and end date fields come from form
>=Nz([Forms]![JPP-JPA_MetricDate_Selection_FRM]![CMBStartDate],#100-01-01#) And <=Nz([Forms]![JPP-JPA_MetricDate_Selection_FRM]![CMBEndDate],#9999-12-31#)
Taruna Matharu OP  @Reply  

5 years ago
Hi Richard and Adam,
I took a different approach by calculating the count in the report. However I need some guidance on the Report footer section. If we have 2 calculated fields in the Group footer, can we use those results to calculate average on the Report footer?
Richard Rost  @Reply  
          
5 years ago
It depends. Try it and see. :)
Taruna Matharu OP  @Reply  

5 years ago
Hi Richard, I did try
Group Footer Average by Member
=[MemberCount]/[Total] -> Both these fields are calculated in the the Group Footer. (Working Fine) I get the % value
Report Footer Overall Average
=Sum([MemberCount]/[Total])/[MemberTotal] -It pops up to enter parameter for MemberCount and Total. I added this to calculate again in the Report Footer as under Group Footer its a calculated field and will not store value....help me please.:-(
Taruna Matharu OP  @Reply  

5 years ago
Hi Richard,
I had to reuse the formulas that were used in the Group Footer back in the Report footer to get the result, however I do not think the that calculated fields in footers will work and one of the number that divides the total average is from the formula put in the group footer as that is the count and its values are in duplicates so under the property sheet I have selected sum overall. If  I take a regular count it adds up duplicates and not single occurrences. I am lost...

=(Sum(IIf([JPP_JPA_Response_Status]="On Time",[JPP_JPA_Response_Status Count])))/(Sum([JPP_JPA_Response_Status Count]))
Richard Rost  @Reply  
          
5 years ago
You're trying to do too much in one function. I would strongly recommend you take some time to review my lessons on form footer totals, grouping levels, and aggregate queries. If you're getting Enter Parameter Value, that usually means something is spelled wrong or you're trying to use a value that hasn't been calculated yet.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 4/30/2026 9:49:25 AM. PLT: 1s