Solved

How count horizontally on a report if textboxes have any value

Posted on 2014-10-16
2
153 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
2 Comments
 
LVL 39

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 49

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now