I have a method that works for me regarding Month and YTD data for 2 time periods: Prior Yr and Current Yr.
However, I just discovered the DateADD and DateSerial commands. How could I use them in my attached Qry22 ??
I presently prompt myself for the desired fiscal Year eg 2007 and the Month eg 12.
Next, Qry22 gathers the records. Unfortunately, I have to use an IIF statement in all my fields !!! Seems like a waste. Right?
Rev$CYmth: Sum(IIf([YearType]=[BaseYear] & "A" And [FiscalMonth]=[FyMo],nz([Rev$])))
And so on. But it works.
I am thinking that a DateSerial or DateAdd method might enable me to avoid a lot of IIF statements. Do you think so? How do?
So the question involves my Qry22 and how to improve it.
I have searched hi and wide on the internet and I see nothing. This is a major question for we Accountant/Access people.
Thanks much.
Molly
However, I just discovered the DateADD and DateSerial commands. How could I use them in my attached Qry22 ??
I presently prompt myself for the desired fiscal Year eg 2007 and the Month eg 12.
Next, Qry22 gathers the records. Unfortunately, I have to use an IIF statement in all my fields !!! Seems like a waste. Right?
Rev$CYmth: Sum(IIf([YearType]=[BaseYear] & "A" And [FiscalMonth]=[FyMo],nz([Rev$])))
And so on. But it works.
I am thinking that a DateSerial or DateAdd method might enable me to avoid a lot of IIF statements. Do you think so? How do?
So the question involves my Qry22 and how to improve it.
I have searched hi and wide on the internet and I see nothing. This is a major question for we Accountant/Access people.
Thanks much.
Molly