How do I format a date to print in all capital letters?

G

Guest

I have a form that ask for a date. This date is then used to print at the
top of a report in the following line: TODAY, (Date), AT 9:30 AM. In the
control source for the text box I typed in "TODAY, "&Format([Date],"MMMM d"",
""yyyy")&", AT 9:30 AM". By typing the "MMMM" in capitals I thought that the
month then would print in capitals but this turned out not to be the case.
How do I get the month to print in capitals?
 
W

Wayne Morgan

Do you want just the month in all caps or the entire line? Although, with
what you have it probably doesn't matter. The only thing not already
capitalized is the name of the month.

Entire line:
UCase("TODAY, " & Format([Date], "MMMM d"", ""yyyy")&", AT 9:30 AM")

It is recommended that you DON'T use reserved words, such as Date, as field
names, variable names, or procedure names. It could cause you problems
unless you are very careful.
 
P

PHil

same prob here but I just want the first letter of the month to be in capital
like
September

is it possible ?
thanks

Wayne Morgan said:
Do you want just the month in all caps or the entire line? Although, with
what you have it probably doesn't matter. The only thing not already
capitalized is the name of the month.

Entire line:
UCase("TODAY, " & Format([Date], "MMMM d"", ""yyyy")&", AT 9:30 AM")

It is recommended that you DON'T use reserved words, such as Date, as field
names, variable names, or procedure names. It could cause you problems
unless you are very careful.

--
Wayne Morgan
MS Access MVP


kda1234 said:
I have a form that ask for a date. This date is then used to print at the
top of a report in the following line: TODAY, (Date), AT 9:30 AM. In the
control source for the text box I typed in "TODAY, "&Format([Date],"MMMM
d"",
""yyyy")&", AT 9:30 AM". By typing the "MMMM" in capitals I thought that
the
month then would print in capitals but this turned out not to be the case.
How do I get the month to print in capitals?
 
M

Marshall Barton

PHil said:
same prob here but I just want the first letter of the month to be in capital
like
September


That's the normal way that dates are formatted. What did
you do to prevent the first letter from being capitalized?
 

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

Top