I have run across an unusual reporting challenge. Among seven fields in the detail section of a report are a check box control and a text control. The checkbox (chkPersonal) source is:
=IIf([I_logPersonal]=True And [I_logVacation]=True,-1,0). This works fine, and does in fact result in a check when appropriate and no check when appropriate.
I want to count the number of checks in the report footer, and use the control “txtSumOfchkPersonal” with the source as:
=Abs(Sum([chkPersonal]))
When I run the report I am prompted with “Enter Parameter Value” “chkPersonal”. The control in the footer is not recognizing the name of the control in the detail section, or at least it seems not to.
I have a similar issue with the text control (intDays) in the details section, where the control source is:
=IIf([intDays]<81,[intDays],80). This works great, showing the number of days for each record. If there are less than 81 days, then it gives me the value, and if it exceeds 80, it gives me 80, which is the maximum allowable.
In the footer I use txtSumOfDays to capture the total number of days. If I use the following as the source:
=Sum([txtSumOfDays]), it again asks for a parameter for txtSumOfDays. If I use the following as the source:
=Sum(IIf([I_intCalendarDaysLost]<181,[I_intCalendarDaysLost],180)) it does result in the correct total.
Is there a switch or something I am not seeing? How can I get the footer controls to recognize the names in the detail section?
Thanks in advance for sharing your ideas.