Computer Learning Zone CLZ Access Excel Word Windows

Let others keep their reputation. You keep their money.

-189th Rule of Acquisition
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Parameter Queries
Samuel Comer 

2 years ago
Hello all,

Below are two parameter queries that are causing me some trouble.

1. SELECT qryAddress.*, tblDonationDetail.fldDate, tblDonation.fldKind, tblDonation.fldFund, tblDonor.fldGroup, tblDonationDetail.fldKindNbr, tblDonationDetail.fldAmount, tblDonationDetail.fldComment, tblDonor.fldCode, tblDonor.fldGroup, tblDonor.fldFirstName, tblDonor.fldLastName
FROM (tblDonor INNER JOIN qryAddress ON tblDonor.fldID = qryAddress.fldID) INNER JOIN (tblDonation INNER JOIN tblDonationDetail ON tblDonation.fldID = tblDonationDetail.fldDonationID) ON tblDonor.fldID = tblDonationDetail.fldDonorID
WHERE (((tblDonationDetail.fldDate) Between Forms!frmSearch!txtStartDate And Forms!frmSearch!txtEndDate) And ((tblDonor.fldCode)=Forms!frmSearch!lstDonorCode));

2. SELECT qryAddress.fldStreet, qryAddress.fldCity, qryAddress.fldState, qryAddress.fldZip, tblPerson.fldFirstName, tblPerson.fldLastName, tblPerson.fldFamilySize, IIf([fldFamilySize]=1,"Individual","Family") AS [Family Type], tblDonation.fldDate, tblPerson.fldCode, tblDonation.fldFund, tblDonation.fldAmount, tblDonation.fldRemark
FROM (tblPerson INNER JOIN qryAddress ON tblPerson.fldID = qryAddress.fldID) INNER JOIN tblDonation ON tblPerson.fldID = tblDonation.fldPersonID
WHERE (((tblDonation.fldDate) Between [Forms]![frmDonationPrecise]![txtStartDate] And [Forms]![frmDonationPrecise]![txtEndDate]) AND ((tblPerson.fldCode)=[Forms]![frmDonationPrecise]![cmbCode]));

The 1st takes in 2 parameters, date, donor code, and all other fields listed and reports correct results. The 2nd gives results for all donors with the date parameter alone, although I need its associated report to give both parameters.

Could you please look and advise me? Thank you for your assistance with this puzzle.

Should you need more info, just ask.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visitor 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: 6/17/2026 10:43:59 AM. PLT: 0s