>Problem 1:
>I am creating a data entry system and one of the fields is the postal code(H2N-5F6)Canada. I am using the MaskEdBox.I want to have the Postal code in Uppercase.How can I format so it is in Uppercase.
Your mask property should be set to ">?9? 9?9".
>Problem 2:I want to use the (Propercase )so that when the user enters text in the LastName field (text box)the first character automatically get changed to uppercase.
Use the StrConv function like this:
Private Sub Text1_Change()
With Text1
.Text = StrConv(Text1.Text, vbProperCase)
.SelStart = Len(.Text)
End With
End Sub
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com