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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

date query parameter



 
 
Thread Tools Display Modes
  #1  
Old April 29th, 2004, 02:14 PM
James New
external usenet poster
 
Posts: n/a
Default date query parameter

I am trying to write a query that would prompt the
operator to enter a year "YYYY" in order to retrieve the
records. The date field is fomated as "MM/DD/YYYY", how
would I set up the parameter so that only the year can be
selected.
Thanks in advance
  #2  
Old April 29th, 2004, 02:55 PM
Cheryl Fischer
external usenet poster
 
Posts: n/a
Default date query parameter

In the design view of your query, insert the following in a Field: row

Year([MyDate])

Then, in the Criteria: row of that column, insert:

[Enter desired Year:]


hth,
--

Cheryl Fischer, MVP Microsoft Access
Law/Sys Associates, Houston, TX


"James New" wrote in message
...
I am trying to write a query that would prompt the
operator to enter a year "YYYY" in order to retrieve the
records. The date field is fomated as "MM/DD/YYYY", how
would I set up the parameter so that only the year can be
selected.
Thanks in advance



 




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 11:14 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.