Newbies jchristiansen70 Posted June 26, 2006 Newbies Posted June 26, 2006 I have a simple inventory database, where I want to use a button to set a field to either allow modification, or deny modification acording to the previous state. I just can't find a way to script the allow or disallow modification of a field. Am I completely missing it, or is it trickier than I first thought?
IdealData Posted June 26, 2006 Posted June 26, 2006 You need another field to record the previous state. Then you can test the value in the field using an IF step in your script. You could also use the field to change the legend on your button!
Newbies jchristiansen70 Posted June 27, 2006 Author Newbies Posted June 27, 2006 I am sorry, I was probably not clear. I do have a field to record the previous state. What I have so far is a script that is run from a button that when clicked, changes from modify mode to lock mode. In lock mode, I change my field text color to red, in modify mode, it changes back to black. That is all working great. All I need is a script command to lock one particualar field in a form, so that it cannot be edited. Essentially the same as checking and unchecking the "Prohibit modification of value during data entry". The other option I thought about is having two fields overlayed, one that is locked, and one that you can edit. But I don't know the command to show/hide a field. Hope this all makes sense.
Recommended Posts
This topic is 6726 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