jonesy17 Posted March 4, 2004 Posted March 4, 2004 I need to ensure that all text entered in field Userid is all lowercase. myuserid = good myUserid = bad myuserID = bad myuSeRiD = really bad ... you get the idea. I've tried validating by calculation Lower(Userid) but that doesn't seem to do anything. I've also tried If ((Lower(Userid), 1, 0) but that got me into real trouble after I made it strict and didn't seem to work anyway. I've also tried searching the forums but I must not be looking for the right thing because I'm coming up with nothing. Can anyone help?
stanley Posted March 4, 2004 Posted March 4, 2004 Robert: If there is a point where you can have a script kick in (after a form with the Userid is filled in, for example) then you could stick this script step in there: Set Field ("UserId", "Lower(UserId)") This would strip out the uppercase characters from the entry. -Stanley
jonesy17 Posted March 4, 2004 Author Posted March 4, 2004 So how do I run a script after the operator has tabbed out of the Userid field?
stanley Posted March 4, 2004 Posted March 4, 2004 You can't launch a script on someone hitting Tab, but if you've got a "Finish" button on there or something, you could put the script step in there. Or, you could run the script on all the records, when the user closes the database... lots of places to put it in there, depending on your design. -Stanley
Charles Delfs Posted March 5, 2004 Posted March 5, 2004 IF you just want to validate try: Exact(MyField,Lower(MyField) Charles
jonesy17 Posted March 5, 2004 Author Posted March 5, 2004 Cheers, Charles. That's "exact"ly what I was looking for! *Groan*
Recommended Posts
This topic is 7912 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now