Private Sub Text0_Change()
Dim intCode As Long
If Not IsNull(Me.Text0.Text) Then
intCode = Asc(Right(Me.Text0.Text, 1))
If intCode = 42 Or intCode = 120 Then
Me.Text0.Text = Left(Me.Text0.Text, Len(Me.Text0.Text) - 1) & "X"
Me.Text0.SelStart = Len(Me.Text0.Text)
End If
End If
End Sub