Hello,
I have a form containing a large text box that can accept an extended amount of text running to hundreds of characters. It is used as a typing exercise for trainee secretarial staff. The form is displayed repeatedly for a different displayed text to be entered each time.
Normally there is no input mask for this text box. However, at randomly selected points, the text has to be entered without the trainee being able to see what is being entered, so the input mask is dynamically set to "PASSWORD" in VBA code. If the next entry reverts to "normal" input, the input mask is reset to "". The
In testing this, I've discovered that, when the input mask is "PASSWORD", there is a maximum limit of 255 characters that can be entered. The problem I'm having is that, if the input mask has been reset to "" for a normal entry after the previous entry was masked, the text box is STILL accepting only 255 characters.
The code I'm using is quite simple. Essentially it looks like this:
If blnVBAMaskedInputRequiredForNext Entry Then
Me.txtEnteredText.InputMask = "PASSWORD"
Else
Me.txtEnteredText.InputMask = ""
End If
Can anyone suggest what I can do to correct this problem? Any ideas would be much appreciated!