Text field properties format

  • Thread starter Thread starter Bobby Baxter
  • Start date Start date
B

Bobby Baxter

Access 2002, WinXP Pro


1. For a text field what do I enter in properties>format so that the first
letter of each word is capitalized such as a person's name: "John Q. Doe"


2. For different text field what do I enter in properties>format so that the
first letter of each word is capitalized as well as each letter that follows
either a "-" (dash) or "." (period) such as: "Salter-E.H."

Thank you,

Bobby

--
Bobby Baxter
TheGardenSite.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~
TheGardenSite.com: http://thegardensite.com
Daylily.Net: http://daylily.net
Happy Moose: http://happymoosegardens.com
Garden Discussion Forum: http://happymoose.com

Specializing in designing web sites for plant lovers!
 
Bobby,

The result you seek is not possible by using the Format property of a
field or control.

You would be advised to run an Update Query on your data, to update
[YourField] to...
StrConv([YourField],3)
.... in order to have your data in Proper Case.

In order to achieve the second result, I think you would need to write a
User-Defined Function which cycles through your data cahacter by
character, and capitalises according to your requirements.
 

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

Similar Threads

Image Field A2002 2
Background colors 2
PP02 Guide or Tutorial?? 3
format a text field 1
Text Format 5
Formatting dates in text field 18
Format Property: Text field to Titlecase 1
format text 4

Back
Top