I have a form that I would like to limit the number of characters that are allowed to be entered into a text box, based on what is chosen in a dropdown box.
Ex. Depending on the type of product chosen from the dropdown, I want to limit a text box to receive only 10 characters or 14. I have created an input mask through the wizard and it works fine. The problem is when I want to do it based on the dropdown value.
I have been trying to enter If Then Else statements but I don't seem to have the right syntax. The input mask puts ";" and the code thinks it is the end of a statement.
Does anyone have any insight? Any help would be greatly appreciated.
Ex. Depending on the type of product chosen from the dropdown, I want to limit a text box to receive only 10 characters or 14. I have created an input mask through the wizard and it works fine. The problem is when I want to do it based on the dropdown value.
I have been trying to enter If Then Else statements but I don't seem to have the right syntax. The input mask puts ";" and the code thinks it is the end of a statement.
Does anyone have any insight? Any help would be greatly appreciated.