HI,
I want to generate the number of the result of the query in the report. But if there is no record show that means there is no admission in that month, the report footer will show error instead of "0" which I want the report show. I put the following code at the footer:
=Sum(IIf([Please enter the year:e.g.2005]=Year([AdmitDate]) And [Please enter the month: e.g. 5]=Month([AdmitDate]),1,0))
Can anyone help ? Thanks in advance.
I want to generate the number of the result of the query in the report. But if there is no record show that means there is no admission in that month, the report footer will show error instead of "0" which I want the report show. I put the following code at the footer:
=Sum(IIf([Please enter the year:e.g.2005]=Year([AdmitDate]) And [Please enter the month: e.g. 5]=Month([AdmitDate]),1,0))
Can anyone help ? Thanks in advance.