-----Original Message-----
I have a report that displays the current fiscal
quarter. Right now I have to type in the correct quarter
in the criteria section of one of my queries. I want the
quarter to update automatically. I don't want to base
the current quarter updates solely upon 2004 dates i.e.
month and year, but on the month no matter what year it
is.
Use the function DatePart. DatePart("q", Date) returns
the numeric value of the current quarter regardless of
year. The 'Date' is really an Access function, Date(),
that returns the current date base on your PC's system
date.
To learn more about datepart, open a module in Access and
then click the Help button. This is Visual Basic help
instead of Access Help. Perform and index search on
Datepart.