Computer Learning Zone CLZ Access Excel Word Windows

The only person you're truly competing against is yourself.

-Jean-Luc Picard
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Adding Columns
Cyrus Ford 

2 years ago
I know how to add columns individually(=count(name of column), but I am trying to find a formula to add the sum of all the columns in my form. I tried =count(*), but it's only adding the total for the first two columns. I collectively would like to add the total for all 10 of my columns under one total. Hopefully this makes sense. Thank you.
Kevin Yip  @Reply  
     
2 years ago
The Count() function counts rows; it cannot count columns.  To count columns, you need to invoke the TableDefs or QueryDefs objects in VBA.  The number of columns is stored in the Fields property.  For instance, the number of columns in Table1 is:

     ColumnCount = CurrentDb.TableDefs("Table1").Fields.Count
Richard Rost  @Reply  
          
2 years ago
Cyrus, you're thinking like an Excel sheet. Access has FIELDS, not columns. Are you trying to count the fields that have values? I need more info in order to be able to help you.

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/8/2026 7:55:25 PM. PLT: 0s