Designing a report for our quarterly bonus program. Table layout, field names, etc were set up before I got here, and can't be changed for various reasons.
We have five fields in the table which can get set yes/no. What I want to do is count how many of those five fields are set to "yes", and print that number on the report.
In previous cases like this, I've written a function to do the count. I pass the store number as a function argument, then use DLookup to check each of the fields and perform the math.
Unfortunately, the field names in the database are things like [Team - Turnover], which causes DLookup to have conniptions.
Any workarounds for this problem, or alternate solutions?
We have five fields in the table which can get set yes/no. What I want to do is count how many of those five fields are set to "yes", and print that number on the report.
In previous cases like this, I've written a function to do the count. I pass the store number as a function argument, then use DLookup to check each of the fields and perform the math.
Unfortunately, the field names in the database are things like [Team - Turnover], which causes DLookup to have conniptions.
Any workarounds for this problem, or alternate solutions?