ACC97: How to Use the StrConv Function to Capitalize Words and Phrases (302499)
The information in this article applies to:
This article was previously published under Q302499 Moderate: Requires basic macro, coding, and interoperability skills.
For a Microsoft Access 2000 version of this article, see 253911.
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."
REFERENCES
For more information about other constants of the StrConv function, search the Help Index for StrConv, and then click the StrConv function topic.
Modification Type: | Major | Last Reviewed: | 9/25/2003 |
---|
Keywords: | kbhowto kbprogramming KB302499 |
---|
|