A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Format Date and Strconv



 
 
Thread Tools Display Modes
  #1  
Old August 21st, 2009, 12:07 PM posted to microsoft.public.access.gettingstarted
Roger Bell
external usenet poster
 
Posts: 275
Default Format Date and Strconv

I have a field in a report as follows:

=Trim("ON THE" & " " & Format([DATE OF CONFIRMATION],"dd mmm yyyy"))
returns "ON THE 25 May 2009.
This works fine, however I would like the result to be displayed on the
report as UPPER case also. That is "ON THE 25 MAY 2009"

Is there a way I can add the strconv command to my existing command?

Thanks for any help
  #2  
Old August 21st, 2009, 12:33 PM posted to microsoft.public.access.gettingstarted
Rick Brandt
external usenet poster
 
Posts: 4,354
Default Format Date and Strconv

On Fri, 21 Aug 2009 04:07:01 -0700, Roger Bell wrote:

I have a field in a report as follows:

=Trim("ON THE" & " " & Format([DATE OF CONFIRMATION],"dd mmm yyyy"))
returns "ON THE 25 May 2009.
This works fine, however I would like the result to be displayed on the
report as UPPER case also. That is "ON THE 25 MAY 2009"

Is there a way I can add the strconv command to my existing command?

Thanks for any help


=Trim("ON THE" & " " & Format([DATE OF CONFIRMATION],"dd mmm yyyy"))
==^
I see no need for Trim() here.

"ON THE" & " " & Format([DATE OF CONFIRMATION],"dd mmm yyyy")
============^
This space can be moved to the end of "ON THE "

strConv("ON THE " & Format([DATE OF CONFIRMATION],"dd mmm yyyy"),1)


--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
  #3  
Old August 21st, 2009, 12:54 PM posted to microsoft.public.access.gettingstarted
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Format Date and Strconv

="ON THE " & UCase(Format([DATE OF CONFIRMATION],"dd mmm yyyy")))


--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Roger Bell" wrote in message
...
I have a field in a report as follows:

=Trim("ON THE" & " " & Format([DATE OF CONFIRMATION],"dd mmm yyyy"))
returns "ON THE 25 May 2009.
This works fine, however I would like the result to be displayed on the
report as UPPER case also. That is "ON THE 25 MAY 2009"

Is there a way I can add the strconv command to my existing command?

Thanks for any help



  #4  
Old August 21st, 2009, 02:30 PM posted to microsoft.public.access.gettingstarted
John Spencer
external usenet poster
 
Posts: 7,815
Default Format Date and Strconv

One more option, just for the heck of it.

"ON THE" & " " & Format(Format([DATE OF CONFIRMATION],"dd mmm yyyy"),"")

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

Roger Bell wrote:
I have a field in a report as follows:

=Trim("ON THE" & " " & Format([DATE OF CONFIRMATION],"dd mmm yyyy"))
returns "ON THE 25 May 2009.
This works fine, however I would like the result to be displayed on the
report as UPPER case also. That is "ON THE 25 MAY 2009"

Is there a way I can add the strconv command to my existing command?

Thanks for any help

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:50 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.