Format Problem

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

Guest

I am having trouble formatting a date to show up in Caps. My goal is to have
this print out in a label on the report:

MONTHLY STATS FOR JANUARY 2007

But all I get is

MONTHLY STATS FOR January 2007.

Here is what I am working with:

label21.Caption = "MONTHLY STATS FOR " &
Format(Forms!frmIDC_Header_Info!Stats_Range, "mmmm yyyy")

The date information comes from the "DateFrom" field on a form where the
user inputs the date range for the report. I tried putting the ">" at the
end of "mmmm yyyy", but that didn't work.

Any help would be appreciated.
 
Just use the ucase() function

label21.Caption = "MONTHLY STATS FOR " &
Ucase(Format(Forms!frmIDC_Header_Info!Stats_Range, "mmmm yyyy"))

Daniel
 
That was too easy. Thanks. Works perfect.

Daniel said:
Just use the ucase() function

label21.Caption = "MONTHLY STATS FOR " &
Ucase(Format(Forms!frmIDC_Header_Info!Stats_Range, "mmmm yyyy"))

Daniel
 

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