Row Level Statistics

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Topflite66
    New Member
    • Apr 2013
    • 2

    Row Level Statistics

    I am working on an Access 2003 database that I need to do calculations accross several columns on a single row. I found this link in an earlier post:
    Microsoft Support is here to help you with Microsoft products. Find how-to articles, videos, and training for Microsoft Copilot, Microsoft 365, Windows 11, Surface, and more.


    This helped with the Count, Average and Sum functions, however I need to also be able to count a specific value accross several columns. I'm not very familiar with VBA so was wondering if anyone knew a way to modify the RCount VBA code to count a specific value? Thanks in advance.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You can put in an If statement to check the value before doing the count or sum.

    Comment

    • Topflite66
      New Member
      • Apr 2013
      • 2

      #3
      Each time I tried adding another If Statement I got unexpected results. So I added the And Operator to = the value I was trying to total and it worked. Thank you very much for your help.

      Comment

      Working...