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 
Combining Queries
Joy Barrett 
    
13 years ago
I have developed a database that tracks participation of clients in the programs of a disability service. I want a report of the total number of clients booked to attend each day of the week. The following query successfully counts Monday attendance. Rather than separately replicating this for each day of the week, I want to develop a single query that counts each day. The query for Monday is:
TRANSFORM Count(Clients.[Client ID]) AS [CountOfClient ID]
SELECT Clients.[Monday Attendance]
FROM Clients
WHERE (((Clients.[Monday Attendance])=Yes))
GROUP BY Clients.[Monday Attendance]
PIVOT Clients.[Monday Attendance];
What do I need to do? I have had no success with crosstab queries.


Reply from Richard Rost:

The problem is that your field is date specific. You would need to UNION QUERY all seven separate day counts together to get the results you want.

A better solution would be to NOT make fields called [Monday Attendance], [Tuesday Attendance], etc. but to have an actual DATE field and then the attendance count. Then you could use the DAY() function to determine what day of the week it is.

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: 5/16/2026 3:20:58 PM. PLT: 0s