Hello:
One way would be to extract the first letter of this string using the LEFT$ function and then capitalize this character and then add it back to the rest of the string.
Regards
Mark
have you tried something like this?
strString = StrConv(strString, vbProperCase)
too late!! haha no just kidding
you can put it in the before update event of the txtbox that you want converted
youll have to adjust it to fit your needs obviously
On a report page there is no before update event![]()
right but if you convert it before you save it, you wont have to go back and convert it before you print it on a report, you can just call it from the table
Why not just add the conversion to the module that converts the number to words?
ConvertCurrencyToEnglish = UCase(Left$(ConvertCurrencyToEnglish;1)) & Mid$(ConvertCurrencyToEnglish;2)
Okay, the result is this, which is added just before the End Function in the ConvertCurrencyToEnglish Function:
Code:ConvertCurrencyToEnglish = UCase(Left$(ConvertCurrencyToEnglish;1)) & Mid$(ConvertCurrencyToEnglish;2)
ConvertCurrencyToEnglish = UCase(Left$(ConvertCurrencyToEnglish, 1)) & Mid$(ConvertCurrencyToEnglish, 2)
I was using semi-colons because I thought that might be needed for your regional version (since you had posted that earlier). But, if you got it to work with commas (which is what I'm used to using), then that is great.
Thanks for the fix, I wanted to add you some point but got his error:You must spread some Reputation around before giving it to boblarson again.