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  

date field by month in query but want only one year



 
 
Thread Tools Display Modes
  #1  
Old February 16th, 2007, 05:51 PM posted to microsoft.public.access.queries
Sue R via AccessMonster.com
external usenet poster
 
Posts: 12
Default date field by month in query but want only one year

I have a query that reads the date field by month and shows the results by
each month for every year. I want it to display only the results from one
year, which is typed in when prompted. I have tried different criteria but
when I run it, I get no results at all so obviously I'm doing something wrong.


any suggestions?

Thank you!
Sue

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200702/1

  #2  
Old February 16th, 2007, 06:48 PM posted to microsoft.public.access.queries
fredg
external usenet poster
 
Posts: 4,386
Default date field by month in query but want only one year

On Fri, 16 Feb 2007 16:51:18 GMT, Sue R via AccessMonster.com wrote:

I have a query that reads the date field by month and shows the results by
each month for every year. I want it to display only the results from one
year, which is typed in when prompted. I have tried different criteria but
when I run it, I get no results at all so obviously I'm doing something wrong.

any suggestions?

Thank you!
Sue


Add a new column to the query grid.
ForYear:Format([DateField],"yyyy")
As criteria on the column, write:
[What year?)

When prompted, enter a 4 digit year.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 




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 06:01 PM.


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