Solved

How count horizontally on a report if textboxes have any value

Posted on 2014-10-16
2
158 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 50

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

756 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