Changing case in text fields

Doctorswamp

New member
Local time
Today, 18:10
Joined
Sep 1, 2006
Messages
4
Hi

Is there a way of changing the case of text that has been entered in a table?

Want a form to display capitalised names, say, no matter how they were entered. Know that they can be displayed in all caps using >.

Thanks
 
I'm sure there are others, but one way would be to put this into the AfterUpdate event of the field

Code:
[Forms]![[I]form name[/I]]![[I]field name[/I]] = Ucase([Forms]![[I]form name[/I]]![[I]field name[/I]])
 
Here's another one, to be put in the After Update event of your field:

Code:
Me.fieldname= StrConv(Me.fieldname, vbUpperCase)

RV
 
Not clear on whether you wanted all uppercase or what Word calls "proper" case or "title" case.

Give us an example of the string you might have in the table BEFORE conversion and how you want to see it AFTER conversion.
 
Hi guys

What I'm after is to convert 'john smith' or 'JoHn SmItH' into 'John Smith'.

And if there are other options for the final format they might be useful too.
 
Code:
[Forms]![form name]![field name].Value = StrConv([Forms]![form name]![field name].Value, vbProperCase)
 
Mark

That's just great, thanks. Sorry to be slow to respond, few days hols.
 

Users who are viewing this thread

Back
Top Bottom