Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check Text for Capitalization

Status
Not open for further replies.

Brogrim

Technical User
Jul 28, 2000
184
IE
I want the text in name fields to be inputted correctly, How do i ensure this happens, do i ghange the format properties on the form.
 
How are ya Brogrim . . . . .

Maybe [blue]StrConv(string, vbProperCase)[/blue] is what your looking for.

[blue]StrConv("bobby williams", vbProperCase)[/blue] returns:
[purple]Bobby Williams[/purple]



Calvin.gif
See Ya! . . . . . .
 
Hi,

You can pass the text through the StrConv function to get what you require.

ie. in the after_update event.

Code:
Me.Text0 = StrConv(Me.Text0, vbProperCase)

Hope that helps.
Sim

----------------------------------------
I was once asked if I was ignorant or just apathetic. I said, "I don't know, and I don't care."
----------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top