TASC Posted June 23, 2008 Posted June 23, 2008 Hi, I have a question in regards to field validation. I need to be able to validate whether a field has been changed. eg. user_name field should only be modifiable upon data entry. After the field has been set with data for the first time, it should no longer be modifiable. How could I do that in a validation of the field? Thanks in advance
Quartekoen Posted June 24, 2008 Posted June 24, 2008 Does the field validation have to be immediate? Because if not, you could always allow for data entry, then have a button for confirmation that brings the user to another table to display the information, while not being modifiable. Immediate validation can be dangerous, since it requires the user input correct data the first time, every time.
Courtney Posted July 10, 2008 Posted July 10, 2008 I have done this by checking the date the record was created against the current date. I have a timestamp field (Creation Date) which holds an auto-entered date and time the record was created. Then in the validation of my secondary field, I use: If ((Get ( CurrentDate ) = GetAsDate ( Creation Date )) ; 1 ; 0 ) This way they can edit the information during record setup if they catch a typo or mistake, but after the initial date, they can't change without an administrator. ~C
Recommended Posts
This topic is 6040 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