Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / March 2007

Tip: Looking for answers? Try searching our database.

Upper Case month

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rich Stone - 18 Mar 2007 18:18 GMT
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?
Rich Stone - 18 Mar 2007 18:30 GMT
Just to add, the box must be editable...
fredg - 18 Mar 2007 18:39 GMT
> 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
[quoted text clipped - 3 lines]
>
> Can anyone help?

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

Signature

Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail

Rich Stone - 18 Mar 2007 20:14 GMT
Thanks Fred, worked a treat!

> > 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
[quoted text clipped - 7 lines]
> Set it's control source to:
> =UCase(Format([DateField],"mmm-yy"))
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.