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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I change an Access field to upper case after lost focus?



 
 
Thread Tools Display Modes
  #1  
Old February 3rd, 2006, 02:40 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default How do I change an Access field to upper case after lost focus?

I have a form with a state field that I want to force to upper case if it is
entered incorrectly.
  #2  
Old February 3rd, 2006, 03:05 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default How do I change an Access field to upper case after lost focus?

Use the strConv function - put this in the AfterUpdate event of the control:

Me.State = StrConv(Me.State, vbUpperCase)

--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.


WendyWest wrote:
I have a form with a state field that I want to force to upper case
if it is entered incorrectly.



  #3  
Old February 3rd, 2006, 03:36 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default How do I change an Access field to upper case after lost focus

Thank you!

"Sandra Daigle" wrote:

Use the strConv function - put this in the AfterUpdate event of the control:

Me.State = StrConv(Me.State, vbUpperCase)

--
Sandra Daigle [Microsoft Access MVP]
Please post all replies to the newsgroup.


WendyWest wrote:
I have a form with a state field that I want to force to upper case
if it is entered incorrectly.




 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loop for VBA code? paulinoluciano Worksheet Functions 5 December 28th, 2005 01:30 PM
Converting from Inches to Feet Conditionally zookeee General Discussion 3 October 4th, 2005 08:57 PM
PLEASE HELP with the SPELLNUMBER function vag Worksheet Functions 0 June 16th, 2005 01:33 PM
EXCEL:NUMBER TO GREEK WORDS vag Worksheet Functions 1 June 15th, 2005 05:57 PM
Is it possible to filter based on ceel format ludahen Worksheet Functions 4 June 9th, 2004 09:19 PM


All times are GMT +1. The time now is 09:03 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.