Solved

Count Questions in Access 2010 Table

Posted on 2015-02-09
1
114 Views
Last Modified: 2015-02-09
I have an access table that I need to count the non-null values in each row. In the attached spreadsheet notice the count in the Total_Questions Column. I'm trying to figure out how to calculate either in a query or using VBA, Thanks
Count.xlsx
0
Comment
Question by:shieldsco
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 40599706
you can use a query like this

select
Iif([q1] & ""<>"",1,0)  +
Iif([q2] & ""<>"",1,0)  +
Iif([q3] & ""<>"",1,0)  +
Iif([q4] & ""<>"",1,0)  +
Iif([q5] & ""<>"",1,0)  +
Iif([q6] & ""<>"",1,0)  +
Iif([q7] & ""<>"",1,0)  As Total_questions
From TableName
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question