yalebulldog Posted November 29, 2001 Posted November 29, 2001 Is there a way to lock a field after the data has been enter? Thanks for the help
Steven H. Blackwell Posted November 29, 2001 Posted November 29, 2001 quote: Originally posted by yalebulldog: Is there a way to lock a field after the data has been enter? Thanks for the help Eli, Eli. Eli.... Sure. Create a number field called "validation", auto enter data = 1. Have your other field validate against that field Validation. After you enter the data, have the number changed from 1 to 0 by script. Thereafter, as long as the Validation field =0, the data in the other field can not be changed by the user. It could be changed by script in some instances. HTH Old Advance Man
Vaughan Posted November 30, 2001 Posted November 30, 2001 I make a script, and attach it to the field on the layout (so the field is a button). The script is simply: code: Allow User Abort [off] If [isEmpty(field)] Go to Field [field] Else Exit Record/Request End If If the field is empty they can enter it. If it is not empty the script keeps bumping them out. Obviously this only works if the user cannot select another layout.
Steven H. Blackwell Posted November 30, 2001 Posted November 30, 2001 Be sure to remove the field from the TAB order if you do this. Old Advance Man
BobWeaver Posted November 30, 2001 Posted November 30, 2001 If you deselect the "allow entry into field" option, you don't have to worry about the tab key, but the Go to field script step will still work.
Vaughan Posted November 30, 2001 Posted November 30, 2001 In my experience, if "allow entry into field" is unchecked, there is *no way* to enter the field. Either way, the original post was about having control over data entry, not just locking users out.
Recommended Posts
This topic is 8465 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