Changing the allowEdit Property on forms

MarionD

Registered User.
Local time
Today, 13:11
Joined
Oct 10, 2000
Messages
425
Hi there again,

I use this little function to change the allowEdit Property on forms by clicking a command button. Can anyone tell me how I can also change the property on sub-forms at the same time?


Public Function Toggle_Forms()
Dim frm As Form
For Each frm In Forms
frm.AllowEdits = True
Next frm
End Function


thanks!
 
The approach that I have used to turn editing on and off in subforms is the LOCK property. Its applied to the CONTROL on the main form that holds the subform.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom