Change property of subform to Allowdeletions = False

AlvaroCity

Registered User.
Local time
Today, 03:16
Joined
Jul 16, 2016
Messages
70
Hi there

I bumped into a problem with my db.

I have a form with a subform and I would like that when a press a button the properties of this subform change to Allowdeletions= False
The problem is that I don't know what code I have to write to do so.

Any ideas?

Thank you
 
subfrm.Form.AllowDeletions = Not subfrm.Form.AllowDeletions
 
That code toggles the AllowEdits setting.

Just to set the state as requested, on the OnClick event of a button on the parent form, the code is
Me.YourSubformControlName.Form.AllowEdits = False

If the button is on the subForm, the code is
Me.allowedits=False
 
Thank you very much!

I fix it.

I don't know how could I be so blind :D
 

Users who are viewing this thread

Back
Top Bottom