• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

How count horizontally on a report if textboxes have any value

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?

1 Solution
May be better to write function, but you can use:
=IIF(isnull(Field1),0,1)+IIF(isnull(Field2),0,1) ...
Gustav BrockCIOCommented:
Or without all the IIfs:

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

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now