Upper Case month

G

Guest

I wish to set a default for a text box based on the current month and year
but I wish the month to be in UPPER case, for example MAY-07. I can get the
date but can't get the month to be upper case. When I try and force this in
the format property, it changes the mmm-yy to be in quotes and literally
shows mmm-yy, then the date code.

Can anyone help?
 
F

fredg

I wish to set a default for a text box based on the current month and year
but I wish the month to be in UPPER case, for example MAY-07. I can get the
date but can't get the month to be upper case. When I try and force this in
the format property, it changes the mmm-yy to be in quotes and literally
shows mmm-yy, then the date code.

Can anyone help?

Use an unbound control.
Set it's control source to:
=UCase(Format([DateField],"mmm-yy"))
 
G

Guest

Thanks Fred, worked a treat!



fredg said:
I wish to set a default for a text box based on the current month and year
but I wish the month to be in UPPER case, for example MAY-07. I can get the
date but can't get the month to be upper case. When I try and force this in
the format property, it changes the mmm-yy to be in quotes and literally
shows mmm-yy, then the date code.

Can anyone help?

Use an unbound control.
Set it's control source to:
=UCase(Format([DateField],"mmm-yy"))
 

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

Similar Threads


Top