ACC2000: How to Use the StrConv Function to Capitalize Words and Phrases (253911)
The information in this article applies to:
This article was previously published under Q253911 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb).
For a Microsoft Access 2002 version of this article, see 298607.
SUMMARY
This article provides examples for using a built-in function called StrConv that you can use to capitalize the first character of a word or a set of words. This function is not affected by leading spaces, but it does have the following limitations for some names:
- Changes "MacDonald" to "Macdonald."
- Changes "van Buren" to "Van Buren."
- Changes "James Pratt VI" to "James Pratt Vi."
REFERENCESFor more information about other constants of StrConv function, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type strconv in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 6/28/2004 |
---|
Keywords: | kbhowto kbprogramming KB253911 |
---|
|