Sep 21, 2002 #1 wizcow Programmer May 11, 2002 13 CA Hi I have users enter all uppercase text, which overfills the text boxes. I want the force the textbox to display lowercase text with the first letter of each word uppercase. Thanks Tom
Hi I have users enter all uppercase text, which overfills the text boxes. I want the force the textbox to display lowercase text with the first letter of each word uppercase. Thanks Tom
Sep 21, 2002 #2 DseeDm Programmer Sep 2, 2002 31 US Hi, I created a function that may help: Public Function PCase(strName As String) As String Dim strWork strWork = Trim(strName) If strWork <> "" then strWork = UCase(Left(strWork, 1)) & _ LCase(Right(strWork, Len(strWork) - 1)) End If PCase = strWork End Function Good Luck - DCD Upvote 0 Downvote
Hi, I created a function that may help: Public Function PCase(strName As String) As String Dim strWork strWork = Trim(strName) If strWork <> "" then strWork = UCase(Left(strWork, 1)) & _ LCase(Right(strWork, Len(strWork) - 1)) End If PCase = strWork End Function Good Luck - DCD