Hello,
I'm using a form where users can enter a code in a text box. I would like this code (can be letters or numbers, or both) to be in Upper Case only. I'm using the below code at the moment:
I've found that this code only works where the code is completely in Lower case (eg. "code"), but does not work when any letter is in Upper case (eg. "Code").
How can I manipulate this code to run form "frmError" if any letter enetered is in Lower case?
Thanks.
I'm using a form where users can enter a code in a text box. I would like this code (can be letters or numbers, or both) to be in Upper Case only. I'm using the below code at the moment:
Code:
If txtNewPortfolio.Value = LCase(txtNewPortfolio.Text) Then
frmError.Show
I've found that this code only works where the code is completely in Lower case (eg. "code"), but does not work when any letter is in Upper case (eg. "Code").
How can I manipulate this code to run form "frmError" if any letter enetered is in Lower case?
Thanks.