View Single Post
  #2  
Old July 12th, 2004, 01:31 AM
Ken Snell
external usenet poster
 
Posts: n/a
Default Auto-uppercase first letter of first/last name?

One way to do this (although it's not foolproof) is to use StrConv function
in code that is run in the AfterUpdate event of the textbox:

Private Sub txtBoxName_AfterUpdate()
Me.txtBoxName.Value = StrConv(Me.txtBoxName.Value, vbProperCase)
End Sub

Note that this will capitalize the first letter of each word, which may not
give the right results for nonstandard names:

rosemarie will become Rosemarie even if it should be RoseMarie

etc.

--

Ken Snell
MS ACCESS MVP

"Lauri" wrote in message
...
Anyone know mask to do this? I'm a beginner here. Thanks.