Solved

How count horizontally on a report if textboxes have any value

Posted on 2014-10-16
2
167 Views
Last Modified: 2014-10-16
Please see attachment.  This is a rough draft of a report I'm trying to design.

Rough draft
The challenge is to count the number of textboxes that have any value in them.  So in this case the ??? answer would be 4.  Each textbox obviously has a unique name and uses a unique table field as it's control source.

How can I do this?

--Steve
0
Comment
Question by:SteveL13
[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
2 Comments
 
LVL 40

Expert Comment

by:als315
ID: 40385247
May be better to write function, but you can use:
=IIF(isnull(Field1),0,1)+IIF(isnull(Field2),0,1) ...
0
 
LVL 51

Accepted Solution

by:
Gustav Brock earned 500 total points
ID: 40385397
Or without all the IIfs:

=Len(Field1 & Field2 & Field3 & Field4 & Field5 & Field6 & Field7 & Field8)

/gustav
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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.

630 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