dateserial to month(as string)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a need to write out the word "August" or "September" or any other
month based on a dateserial value of the previous month.

Is there a function to do this or do I have to write the code. I don't mind
doing that, but if there is a function, I would rather us it.

tia
 
JMorrell said:
I have a need to write out the word "August" or "September" or any
other month based on a dateserial value of the previous month.

Is there a function to do this or do I have to write the code. I
don't mind doing that, but if there is a function, I would rather us
it.

You can use the Format function to convert a date value to a month name:

Format([Your Date Value or Expression], "mmmm")
 
Or this works too:

MonthName(Month([YourDateValue]))

--

Ken Snell
<MS ACCESS MVP>

Dirk Goldgar said:
JMorrell said:
I have a need to write out the word "August" or "September" or any
other month based on a dateserial value of the previous month.

Is there a function to do this or do I have to write the code. I
don't mind doing that, but if there is a function, I would rather us
it.

You can use the Format function to convert a date value to a month name:

Format([Your Date Value or Expression], "mmmm")

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 
Thanks for the info.
--
JMorrell


Dirk Goldgar said:
JMorrell said:
I have a need to write out the word "August" or "September" or any
other month based on a dateserial value of the previous month.

Is there a function to do this or do I have to write the code. I
don't mind doing that, but if there is a function, I would rather us
it.

You can use the Format function to convert a date value to a month name:

Format([Your Date Value or Expression], "mmmm")

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top