bearcub
Well-known Member
- Joined
- May 18, 2005
- Messages
- 734
- Office Version
- 365
- 2013
- 2010
- 2007
- Platform
- Windows
I have a database where I have several fields text in different formats (i.e. names that are all capitalized or words that are all lower case or words that are in proper case).
I would like to convert all the records to Proper Case so they all follow the same format.
In Excel, I've used the Proper function to do this but it seems that this function doesn't exist in Access. So, I found that "StrConv" performs the same task as the Proper function.
This function works great but I did find out that names that use hyphens - like in married names have a minor issue. StrConv function converts all letters appearing after a hyphen in lower case - it seems to consider a hyphen as a letter.
Example: "Rose-Williams" or "ROSE-WILLIAMS" or "rose-williams" becomes Rose-williams after the StrConv function is applied to the field - which is not what I want. Rose-Williams is the output that I need.
Is there a work around to this so that all names are in proper case and the words after a hyphen are capitalized or am I not using this function correctly. I am using 3 as the 2nd parameter.
Thank you for your help,
Michael
I would like to convert all the records to Proper Case so they all follow the same format.
In Excel, I've used the Proper function to do this but it seems that this function doesn't exist in Access. So, I found that "StrConv" performs the same task as the Proper function.
This function works great but I did find out that names that use hyphens - like in married names have a minor issue. StrConv function converts all letters appearing after a hyphen in lower case - it seems to consider a hyphen as a letter.
Example: "Rose-Williams" or "ROSE-WILLIAMS" or "rose-williams" becomes Rose-williams after the StrConv function is applied to the field - which is not what I want. Rose-Williams is the output that I need.
Is there a work around to this so that all names are in proper case and the words after a hyphen are capitalized or am I not using this function correctly. I am using 3 as the 2nd parameter.
Thank you for your help,
Michael