I also have a report which I need to count the number of occurrences based on a floor or location number. I need to count the number of disciplinary hearings based on the floor the incident happened. and print out in different boxes the results.
For example, on the 2nd floor ([Floor]) there were 8 incidents, on the 4th floor there were 6 all in the 06/01/03 to 06/30/03 date range ([DateIncident]) field.
Ther report needs to total the number by floor and place the number in a separate box under the column heading for the correct location. Is there a way to apply a filter to a text box along with the code? I have written some code, based on the answer given by Hans, as =Abs(Count([Floor]). This when run asks for the floor, but if I put in “02” as the response it totals all the text boxes as if the filter was to “02” I need the report to total for each floor without any input if possible. I have already restricted the data to selecting the previous month but can’t figure out how to filter to the floor as well.
Please help.
[Floor] is a text field with two digits length. It is restricted to 02, 04, 06, 08, 10, 12, 13, 01, KI, BA for the floors in a jail that house inmates.
Jail Administrator Medical