John,
I tried your language in my database (Access 2000), tried to modify it, but
continue to get errors. The following is my current Event Procedure.
***************************
Private Sub FirstName_AfterUpdate()
Dim t_FirstName As String
t_FirstName = UCase(Left([FirstName], 1)) & Mid([FirstName], 2, 20)
Me.FirstName = t_FirstName
End Sub
Private Sub LastName_AfterUpdate()
Dim t_LastName As String
t_LastName = UCase(Left([LastName], 1)) & Mid([LastName], 2, 20)
Me.LastName = t_LastName
End Sub
Well, that bears no resemblance whatsoever to the code that I posted.
If the code I posted doesn't work, please repost with an indication of
HOW it is failing - does it not compile? or not do what you expect? If
so, what errors are you getting?
To reiterate:
Private Sub LastName_AfterUpdate
If StrComp(Me![LastName], LCase(Me![LastName]), 0) = 0 Then
Me!LastName = StrConv(Me!LastName, vbProperCase)
End If
End Sub
John W. Vinson[MVP]