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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extract month from date in a query 1

Status
Not open for further replies.

ch4meleon

Technical User
Jan 13, 2003
60
GB
apologies i know this is probably really simple but i cannot get my brain to function at all today !!
I have a query with 2 fields (yep a whole 2)
name
Date
all i want is to convert that to name and the month from the date (currently in dd/mm/yyyy format
please can anyone advise ???
huge thanks in ant
 
But note that

Month(Date)
or
Format(Date,"mmmm")

will probably give you the current date rather than your field of the same name. It's usually recommended that you avoid field names that are also the names of builtin functions or are reserved words (e.g. Date, Now, User, Month, Year, Day, etc.) If you must however then enclose them in square brackets (e.g. [Date]) to indicate that they are field names and not function calls.

[small]No! No! You're not thinking ... you're only being logical.
- Neils Bohr[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top