I've used this code in the past...it probably does more than whats needed but its only an alternative option to what Lavey has posted as his method works great. The only difference with my code is that it will Upcase the first character of each word, i.e: "joe bloggs" converts to "
Joe
Bloggs"
**********code begins
Function CapitalizeFirst(Str)
Dim Counter, Strlen As Integer
Counter = 1
Strlen = Len(Trim(Str))
CapitalizeFirst = UCase(Mid(Str, 1, 1))
Do While Counter < Strlen
Counter = Counter + 1
If Mid(Str, Counter, 1) = " " Then
CapitalizeFirst = CapitalizeFirst & " "
Counter = Counter + 1
CapitalizeFirst = CapitalizeFirst & UCase(Mid(Str, Counter, 1))
Else
CapitalizeFirst = CapitalizeFirst & Mid(Str, Counter, 1)
End If
Loop
End Function
Private Sub txtAttention_AfterUpdate()
If Not (IsNull(Me.txtAttention)) Then
Me.txtAttention = CapitalizeFirst((Me.txtAttention))
End If
End Sub
**********code ends
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)