Hello group!
I have created a query that allows me to calculate how long it takes for me receive payments from my suppliers (via a crosstab query). Now I want to use the following w/o hardcoding the 7/31/2007. How do I make the year a variable without using the DateSerial() function?
Take a peek at this:
Jul1: IIf(IsNull([Jul]),DateDiff("d",Date(),#7/31/2007# -[AVG Of DaysOutstanding]),[Jul])
Yes this does work but it's
I have created a query that allows me to calculate how long it takes for me receive payments from my suppliers (via a crosstab query). Now I want to use the following w/o hardcoding the 7/31/2007. How do I make the year a variable without using the DateSerial() function?
Take a peek at this:
Jul1: IIf(IsNull([Jul]),DateDiff("d",Date(),#7/31/2007# -[AVG Of DaysOutstanding]),[Jul])
Yes this does work but it's