How can I begin year/1st quarter in July instead of Jan in Access

L

Lori

I'm trying to show the quarter of a date field but our fiscal year begins in
July instead of January. Is there anyway I can make July-Sep 1st quarter,
Oct-Dec 2nd quarter and so on?
 
M

MGFoster

Lori said:
I'm trying to show the quarter of a date field but our fiscal year begins in
July instead of January. Is there anyway I can make July-Sep 1st quarter,
Oct-Dec 2nd quarter and so on?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Try this:

datepart("q",dateadd("m",-6,dteTheDate))

The -6 indicates the offset in months from January your Fiscal Year
starts on.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
** Respond only to this newsgroup. I DO NOT respond to emails **

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBSQooqIechKqOuFEgEQJF2gCgplTJxVcSZd7BwZABZ+q7rpE/mCkAmgKr
2w5atoEUv0mRnQGBqLMgCOXu
=8fIA
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top