T
Tom Bock
I use a parameter query to enter the YEAR of a record.
I now would like to automatically populate the particular QUARTER for the
chosen year.
This is what I currently have:
**********
Year: (IIf([DATE] Between #1/1/2001# And #12/31/2001#,"2001",IIf([DATE]
Between #1/1/2002# And #12/31/2002#,"2002")))
This line above procudes the year so that I can easily group records.
**********
Here's now the problem with the "QUARTER":
**********
Quarter: (IIf([DATE] Between #1/1# & [YEAR] And #3/31# & [YEAR],"1st"))
Based on the entered parameter -- e.g. "2001" of the date field, the year
"2001" is pulled from the date field.
I now want to automatically compute the QUARTER based on the computed YEAR
field. In the example above (QUARTER), I have done it only for the 1st
quarter. Currently -- without the "&[YEAR]", the dates default
automatically to the current year e.g. #1/1/2004#.
Again, however, that's now what I want to produce for records that are
generated in 2001. I hope this makes sense?!?!
**********
Thanks,
Tom
I now would like to automatically populate the particular QUARTER for the
chosen year.
This is what I currently have:
**********
Year: (IIf([DATE] Between #1/1/2001# And #12/31/2001#,"2001",IIf([DATE]
Between #1/1/2002# And #12/31/2002#,"2002")))
This line above procudes the year so that I can easily group records.
**********
Here's now the problem with the "QUARTER":
**********
Quarter: (IIf([DATE] Between #1/1# & [YEAR] And #3/31# & [YEAR],"1st"))
Based on the entered parameter -- e.g. "2001" of the date field, the year
"2001" is pulled from the date field.
I now want to automatically compute the QUARTER based on the computed YEAR
field. In the example above (QUARTER), I have done it only for the 1st
quarter. Currently -- without the "&[YEAR]", the dates default
automatically to the current year e.g. #1/1/2004#.
Again, however, that's now what I want to produce for records that are
generated in 2001. I hope this makes sense?!?!
**********
Thanks,
Tom