View Full Version : Capitalization of memo field


davesmith202
10-23-2008, 07:21 AM
Is there an easy way to capitalize each word in a memo field?

Dave

boblarson
10-23-2008, 07:28 AM
Is there an easy way to capitalize each word in a memo field?

Dave

You can

1. Use an update Query and use UCase([YourFieldName]) to do the update.

or

2. You can just use UCase whenever you want to display it.

or

3. When writing to the field, if you are using a form (which I'm hoping you would be) you can use the Control's Before Update event to change it to:

Me.YourTextBoxName = UCase(Me.YourTextBoxName)

davesmith202
10-23-2008, 07:33 AM
I forgot to mention, only capitalize the first letter of each word! ProperCase or something seems to ring a bell.

I will use something like:

Me.YourTextBoxName = UCase(Me.YourTextBoxName)

but need a ProperCase function.

chergh
10-23-2008, 07:36 AM
Me.YourTextBoxName = strconv(Me.YourTextBoxName, vbpropercase)

davesmith202
10-23-2008, 07:49 AM
Fab! Thank you guys. :)