![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
For systems you build, when presenting forms where data can be viewed and, for authorized users, edited. Do you present the form in read only mode initially for all users and require the authorized user to click a button to enter "edit mode" and allow edits? My own practice was to allow edits at all times for authorized users and ask them to be careful. I just want to see what other developers do as a standard. |
#3
| |||
| |||
|
|
Bob, if you are only concerned about users accidentally modifying the data (i.e. carelessness, not malice), it makes sense to bring up the form locked with a button to unlock it for edits. In experimenting with this approach, I found that setting a form's AllowEdits to False had undesirable side effects (e.g. unbound controls can't be edited either), so I created a routine that sets the Locked property of the bound controls. It also calls itself recursively to lock/unlock subforms (including subforms nested to any depth.) And it takes optional arguments that let you specify controls that should not be locked/unlocked (including subforms if you wish.) The routine is copy'n'paste stuff you can reuse on any form just by setting a couple of properties. You're welcome to it: Locking bound controls on a form and subforms at: http://allenbrowne.com/ser-56.html Thanks Allen. You provided easy to use code to allow me to open up any |
#4
| |||
| |||
|
|
Allen Browne wrote: Bob, if you are only concerned about users accidentally modifying the data (i.e. carelessness, not malice), it makes sense to bring up the form locked with a button to unlock it for edits. In experimenting with this approach, I found that setting a form's AllowEdits to False had undesirable side effects (e.g. unbound controls can't be edited either), so I created a routine that sets the Locked property of the bound controls. It also calls itself recursively to lock/unlock subforms (including subforms nested to any depth.) And it takes optional arguments that let you specify controls that should not be locked/unlocked (including subforms if you wish.) The routine is copy'n'paste stuff you can reuse on any form just by setting a couple of properties. You're welcome to it: * *Locking bound controls on a form and subforms at: * *http://allenbrowne.com/ser-56.html Thanks Allen. *You provided easy to use code to allow me to open up any form as locked and easily unlock it. However, I am still interested in what other developers actually do. bob- Hide quoted text - - Show quoted text - |
#5
| |||
| |||
|
|
For systems you build, when presenting forms where data can be viewed and, for authorized users, edited. *Do you present the form in read only mode initially for all users and require the authorized user to click a button to enter "edit mode" and allow edits? My own practice was to allow edits at all times for authorized users and ask them to be careful. I just want to see what other developers do as a standard. |
![]() |
| Thread Tools | |
| Display Modes | |
| |