Hello to all,
I want to capitalize the first letter of every word. The problem is if some fields are null, it fails.
example
thanksVB Code:
Private Sub Name() Dim strFullName As String strFullName = IIf(Not IsNull(rstLast).Value, Cap(Trim(rstLast).Value, "") _ & ", " & IIf(Not IsNull(rstFirst).Value), _ Cap(Trim(rstFirst).Value), "") _ & " - " & IIf(Not IsNull(rstTitle).Value, _ Cap(Trim(rstTitle).Value), "") End Sub


Reply With Quote
