Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Beginner Question: How do I specify a month with a parameter query? 1

Status
Not open for further replies.

swimtiger

Technical User
Aug 5, 2002
25
0
0
US
I would like to create a parameter query that asks for the month instead of asking for a beginning and ending date.

Currently, my criteria line looks like this:
Between [Type the beginning date] And [Type the ending date]

To view the records for July 02, I have to type 7/1/02 and 7/31/02. I would like to be able to type July 2002 and have all of the records listed.

THANKS
 
In the query design grid insert a new column and type the following in the Field section. Then in the Criteria section change your parameter to say [Enter Month and Year].

Month: Format([YourDateField],"mmmmyy")

so you when the parameter box pops up you would type July02 and it should work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top