Forcing text to upper case

R

Ronald

I recall reading that you can force text values in reports
to UPPERCASE... however I do not remember how.

Any assistance would greatly be appreciated.


Ronald
 
D

Dirk Goldgar

Lynn Trapp said:
If you want to do it in a query, then you need to write a function
like the one below:

Function Upper(P_String_Value)
Upper = Format(P_String_Value, vbUpperCase)
End Function

Then you can call that function from your query:

UpperCaseValue: Upper([YourField])


Ronald said:
I recall reading that you can force text values in reports
to UPPERCASE... however I do not remember how.

Any assistance would greatly be appreciated.

Lynn -

I think you meant to use the StrConv() function instead of the Format()
function. But why not just use

UpperCaseValue: StrConv([YourField], 1)

in the query?
 
L

Lynn Trapp

I think I'm half asleep today, Dirk. You're quite right, but it was fun
writing my own function... <g>

--
Lynn Trapp
MS Access MVP
www.ltcomputerdesigns.com
Access Security: www.ltcomputerdesigns.com/Security.htm



Dirk Goldgar said:
Lynn Trapp said:
If you want to do it in a query, then you need to write a function
like the one below:

Function Upper(P_String_Value)
Upper = Format(P_String_Value, vbUpperCase)
End Function

Then you can call that function from your query:

UpperCaseValue: Upper([YourField])


Ronald said:
I recall reading that you can force text values in reports
to UPPERCASE... however I do not remember how.

Any assistance would greatly be appreciated.

Lynn -

I think you meant to use the StrConv() function instead of the Format()
function. But why not just use

UpperCaseValue: StrConv([YourField], 1)

in the query?

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 

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