Case sensitive Fields

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

Guest

I need to Set a field to all upper case. My problem is, I have mixed text and
numbers in the field. (>) will only allow me to type in text, (No Numbers)
 
Use the AfterUpdate event procedure of the text box where you enter this
data to convert the entry to upper case:

Me.[MyField] = UCase(Me.[MyField])

That's the only way to get it to upper case anyway.
Setting the Format property only affects how it is displayed.
 
Arvin, What about this same situation on a report. I want to display November
1, 2004 as NOVEMBER 1, 2004?
Brian

Arvin Meyer said:
Use the AfterUpdate event of the textbox to change the text to upper case
like this (aircode):

Sub MyText_AfterUpdate()
MyText = UCase([MyText])
End Sub
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access

toolman74 said:
I need to Set a field to all upper case. My problem is, I have mixed text and
numbers in the field. (>) will only allow me to type in text, (No Numbers)
 
Set the Control Source of the text box on the report to something like this:
=UCase(Format(Date(), "Long Date"))
 
This may be dumb, but if my Control Source currently is Expiration Date, how
do I fit that with the code?
 
=UCase(Format([Expiration Date], "Long Date"))

Make sure the Name of this text box is not Expiriation Date or any other
field name.
 
Allen, worked great and I learned more about mm yy dd, etc where the long
date was.

Sorry it took so long to tell you thanks.

Allen Browne said:
=UCase(Format([Expiration Date], "Long Date"))

Make sure the Name of this text box is not Expiriation Date or any other
field name.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

bdehning said:
This may be dumb, but if my Control Source currently is Expiration Date,
how
do I fit that with the code?
 

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