LarryDeLaruelle
Technical User
I am trying to count the number of fields in the detail band that contain a specific text string and then calculate the percentage that number represents of the total number of records.
I tried: =Count([FieldName] = String) and various other ways of setting up the expression and continued to get the total count of records (based on what I read in the Help files that would be correct).
Since I could not get this to work in an unbound text box, I set up accumulator variables in code behind the form: dimmed the variables in General Declarations, initialized them in the form's On Open event and put the IF/THEN criteria in the Detail Band On Format event. By using a break point I can tell that the accumulators are working correctly as are my percentage calculations.
What I cannot figure out is how to place the results of those calculation in the Report Footer. I've tried =[intName] and [Reports]![ReportName]![intName]. The only response I've gotten is a parameter prompt for a value for intName.
Am I approaching this from the right direction or am I off base? If yes, how should I be doing this; if no, what am I missing to make the results display properly?
Thanks.
I tried: =Count([FieldName] = String) and various other ways of setting up the expression and continued to get the total count of records (based on what I read in the Help files that would be correct).
Since I could not get this to work in an unbound text box, I set up accumulator variables in code behind the form: dimmed the variables in General Declarations, initialized them in the form's On Open event and put the IF/THEN criteria in the Detail Band On Format event. By using a break point I can tell that the accumulators are working correctly as are my percentage calculations.
What I cannot figure out is how to place the results of those calculation in the Report Footer. I've tried =[intName] and [Reports]![ReportName]![intName]. The only response I've gotten is a parameter prompt for a value for intName.
Am I approaching this from the right direction or am I off base? If yes, how should I be doing this; if no, what am I missing to make the results display properly?
Thanks.