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!

formatting the Date

Status
Not open for further replies.

WaltLukeIII

Programmer
Jun 28, 2000
199
0
0
US
I have a date field that I want to limit to the year. I format the field in the table. however when I access that table through a query the format reverts back to the typical month day and year format. I want to limit the data by years.

Thanks
Walt III

Walt III
SAElukewl@netscape.net
 
In your query simply select the year:
SELECT Year([date field]) AS [year]

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks PH

That was exactly what I was looking for.

here is the syntax for the design veiw

Column_Name: Year(table.Date)

Walt III
SAElukewl@netscape.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top