[RESOLVED] how to apply restrictions to inputs
Hi, im doing a project for school and need to know how to mke restrictions on a users input (through a textbox).
All i need to do is to make so that if the user enters a username that doesnt have the @ symbol, then an error message appears. Any help is apprecieated as always!:)
Re: how to apply restrictions to inputs
Do you need to do this as the user types or once they are finished?
If once finished look at InStr function
Re: how to apply restrictions to inputs
Once they are finished, they fill in a username and a password then click OK to process it. Thanks, il look it up.:thumb:
Re: how to apply restrictions to inputs
In the OK button's click event, you can validate the entered the text correctly. As Mazzi pointed out, using InStr() and supplying "@" as the criteria will tell you they used an @ symbol. At the same time, you can validate they entered a password and that it meets any length requirements.