using format function

ariel81

Registered User.
Local time
Today, 12:52
Joined
Dec 31, 2006
Messages
75
i use the format function to display month, here is the code below:


Format(MthInput, "mmmm")

however, whatever MthInput value is used say 1,2,3...
the month display will always either be december or january why is this so?

i want it to be 1 -> january
2 -> feburary
:
:
12 -> december

did i use the format function correctly?
 
it is a date you are formatting not a month number

Format(#01-12-01#,"mmmm")

and not
Format (12,"mmmm")
 
because i am inputing the month only and not the whole date.
how can i use the month only?
 

Users who are viewing this thread

Back
Top Bottom