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 
Check Boxes
David H 

11 years ago
Hi Alex.

If possible could you please give me a example of what I would have to do in the after update section of the check boxes.

I did try changing the control source of the 15th check box to this:

check1 + check2 + ..... + ..... = -14

which did work... but then I realized that this 15th check box is actually a bound check box and on my continuous form this check box would not show as true. The 15th check box is just to show that the job has been completed going down the continuous form, for the job to be complete all the other 14 check boxes must be true. I understand it is not ideal to calculate actual data but under this circumstance I think that human error of not checking this check box would be more of a problem.

Thanks for you help :)


Reply from Alex Hedley:

This could be improved upon but you could do the folloing:


Sub CheckFinal()

    Dim blnAllTrue As Boolean
    blnAllTrue = True
    
    For Each ctrl In Me.Controls
        If ctrl.Tag = "FILL" Then
            If ctrl.Value = False Then
                blnAllTrue = False
            End If
        End If
    Next
    
    Check212 = blnAllTrue

End Sub


Now just add this to each of the Checkboxes AfterUpdate() Event, except the last one.


Private Sub Check#_AfterUpdate()
    CheckFinal
End Sub


Now when you select or unselect a check box the routine is looped and it will check the final one on or off.

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/17/2026 1:54:13 AM. PLT: 1s