Computer Learning Zone CLZ Access Excel Word Windows

here may be babblers, wholly ignorant of mathematics, who dare to condemn my hypothesis, upon the authority of some part of the Bible twisted to suit their purpose. I value them not, and scorn their unfounded judgment.

-Nicolaus Copernicus
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Color existing products
Qandeel Ayyaz 
   
3 years ago
Can you help me create a function in which if i scan a product and it colors that record cell if it is in the table, or gives a msgbox Not Found and also a function that counts the no. of colored items. I have created these functions in excel. But i cant do it in access. Any help is appreciated. Please Help.
Alex Hedley  @Reply  
           
3 years ago
Kevin Yip  @Reply  
     
3 years ago
It may be better to use a Yes/No field in your table for indicating found or not found, because queries and aggregate functions can only work with fields of tables (or fields of other queries) -- they can't "see" the background color of a textbox on a form.  When you have the Yes/No field set up, you can easily count the number of found items with:

     DCount("*", "MyTable", "[Found] = True")

or an aggregate query:

     SELECT Count(*) FROM MyTable WHERE [Found] = True;

You can do the above and still have the textbox color change accordingly as a visual aid for the user.  But to be able to count, you need the above method.

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: 5/6/2026 11:36:46 AM. PLT: 1s