I want to prevent accidental modifications of items of data in my form.
It is easy to preset the mode for read only in the properties window but i want to change the mode
betwen "read only" and "alow edit" with a function-bottom.
Can it be done?
I want to prevent accidental modifications of items of data in my form.
It is easy to preset the mode for read only in the properties window but i want to change the mode
betwen "read only" and "alow edit" with a function-bottom.
Can it be done?
Yes. Code can set the form properties: AllowEdits, AllowDeletions, AllowAdditions.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Here is a basic example of using controls on a main form to manage some of the properties on a subform.
https://www.accessforums.net/sample-...tml#post190509
Like this, where the Command Button is named cmdAllowEdits:Code can set the form properties: AllowEdits, AllowDeletions, AllowAdditions.
Linq ;0)>Code:Private Sub Form_Current() Me.AllowEdits = False End Sub Private Sub cmdAllowEdits_Click() Me.AllowEdits = True End Sub
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007