A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

select fiscal year on a query



 
 
Thread Tools Display Modes
  #1  
Old July 21st, 2008, 02:39 PM posted to microsoft.public.access.queries
artist
external usenet poster
 
Posts: 4
Default select fiscal year on a query

I have a query that I need to allow a user to select the fiscal year. The
company fiscal year runs 4/1 through 3/31. I want to allow the user to
select the fiscal year and have the data from 4/1 through 3/31 show on the
report. Any help would be appreciated.
  #2  
Old July 21st, 2008, 03:22 PM posted to microsoft.public.access.queries
Allen Browne
external usenet poster
 
Posts: 11,706
Default select fiscal year on a query

Type an expression like this into the Field row in query design:
FinYear: Year(DateAdd("m", -3, [YourDateField]))

By subtracting 3 months, all dates from Jan - Mar fall in the previous year.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"artist" wrote in message
...
I have a query that I need to allow a user to select the fiscal year. The
company fiscal year runs 4/1 through 3/31. I want to allow the user to
select the fiscal year and have the data from 4/1 through 3/31 show on the
report. Any help would be appreciated.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:46 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.