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 
Conditional Formatting a List Box
ellesha 

14 years ago
My problem is that..

I have a weekly calender to show who's off in a listbox, this information came from Query_Holiday, when I selected a date. For staff whose holiday have been Approved will show in the who's off listbox, and a Count Listbox function is applied. ie: Day shift : Total Space available 10, space taken 6, and Space Remains [  4  ].

However, now I would like to incorporate those who got their holiday Rejected to show in the listbox as well but Highlighted in Red. And, count listbox function to set only count "Approved" items not "Rejected" items.

Hope someone can advise how to do conditioning formating in a listbox and Count Listbox function to count only Approved items?

Thank you so much...



Reply from Richard Rost:

You can't apply conditional formatting to a list box in Access. The list box itself has ONE set of format properties available. The only thing you could do if you need this is to use a subform or a small modal popup window.

As far as counting the items goes, that's just a matter of math. Assuming your APPROVED field is a Boolean (true/false) then just add up the values. Since TRUE = -1, you'll get a count of how many approved items you have. Multiply by -1 to get the total.

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 5:09:48 PM. PLT: 0s