I have a report (actually two separate reports on one master sheet) that has the requirement of the current month’s stats as well as year-to-date stats. This, in and of itself, is not the problem. The problem is that the fiscal year runs from Apr 1 to Mar 31, but for the first reporting year, because the agency received the funding starting Oct 1, the fiscal year will be from Oct 1 through Mar 31. Thereafter, it will revert to the normal fiscal year (Apr 1).
I use a date picking form for running all reports and and am using two separate queries for the monthly and YTD stats. For YTD, what I was trying to do was something like: If the ending date of the period is before April 1, 2008, then give me info from Oct 1 to [Forms]![frmDates]![txtenddate], otherwise, give me from Apr 1 in the current fiscal year to the current reporting month.
I was using a pair of nested IIf statements. The various dates are caculated using dateserial. I get an error message stating that the expression is too complex to be evaluated.
Can anyone suggest some air code that would be an appropriate starting point. I no longer have the IIf statements since they weren’t working and the client needed info right away, so I just hard-coded the dates they needed today. I can re-construct them if it would be helpful.