Awes
Usually Confused
- Local time
- Today, 10:41
- Joined
- Aug 20, 2002
- Messages
- 34
Hi Everyone
In a database that I have been working on the user is required to enter names and addresses.
To overcome finger trouble by the user a short piece of code using the StrConv(string, conversion) command was inserted into the 'After Update' property as an event procedure to ensure that the first letter of each word in the entered string was always shown and stored in capitals.
This works well and the users were impressed at this autocorrection, as they are not the best typists in the world.
However they have recently highlighted a situation that I hadn't thought of and neither had they until it occurred the other day and they have asked if I could come up with something to autocorrect the problem.
The problem is with double barrelled or hyphentated names e.g. Harvey-Jones.
The current code will only capitalise the first letter e.g. Harvey-jones
Whilst code can be written to look at each character in a string in turn, until the end of the string is reached, and if the current character is a '-' convert the next character into uppercase I was wondering if there was a quick way of solving the problem.
Any thoughts or comments would be appreciated.
Cheers
Awes
In a database that I have been working on the user is required to enter names and addresses.
To overcome finger trouble by the user a short piece of code using the StrConv(string, conversion) command was inserted into the 'After Update' property as an event procedure to ensure that the first letter of each word in the entered string was always shown and stored in capitals.
This works well and the users were impressed at this autocorrection, as they are not the best typists in the world.
However they have recently highlighted a situation that I hadn't thought of and neither had they until it occurred the other day and they have asked if I could come up with something to autocorrect the problem.
The problem is with double barrelled or hyphentated names e.g. Harvey-Jones.
The current code will only capitalise the first letter e.g. Harvey-jones
Whilst code can be written to look at each character in a string in turn, until the end of the string is reached, and if the current character is a '-' convert the next character into uppercase I was wondering if there was a quick way of solving the problem.
Any thoughts or comments would be appreciated.
Cheers
Awes