Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Home > Forums > Access Forum > Query Help Needed by Marcelino Sanchez
Back to Access Forum    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Query Help Needed
Marcelino Sanchez 
     
2 years ago
Guys, I have done this before but just can't seem to remember how I did it. I created a query that feeds a report that displays all the donors who have contributed to date in this current year. The problem I am having is that if the donor contributed 10 times, his/her name appears 10 times in the query. I added the Word DISTINCT immediately following the word SELECT in the SQL View, but it's still doing the same thing. How can I correct this issue?
Bill Swan  @Reply  
    
2 years ago
Is it ' Group By ' you are looking for ?
Marcelino Sanchez OP  @Reply  
     
2 years ago
Thank you so much for your assistance Mr. Swan but unfortunately adding the Group By to the query did not resolve my problem. Here is what I have in my Query. I added both my PartnerT and my DonationT tables as the source with a right join from the PartnerT to the DonationT table.

I dragged the PartnerID, FirstName, LastName and all related Address field from the PartnerT table and only the DonationDate field from the DonationT table. I then added the following custom field:  DonationYear: DatePart("yyyy",[DonationDate])

The custom field is being used as a parameter field to prompt for user for the Donation Year. The Criteria for the field: [Enter Donation Year].

The goal of my query is to return the names and addresses of all my partners who donated in the year entered at the prompt. I works but the name of each Partner replicates itself for each donation they have given.
Kevin Robertson  @Reply  
          
2 years ago
Marcelino Sanchez OP  @Reply  
     
2 years ago
Thank you Bill and Kevin. The group did in fact work once I watched the Grouping & Sorting Video and even more watching the Extended-Cut. Thanks a million. Have a blessed evening.

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

Next Unseen

 
 
What's This?

 

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: 9/29/2026 1:30:24 PM. PLT: 1s