I have a form which contains a tabcontrol.
The tabcontrol has a number of tabs.
Some of the tabs have 2 subforms on them.
I wish to set the allowadditions, allowedits and allowdeletions on the subforms to false when i open the original form, and have a checkbox to set them to true.
So far I’ve been struggling with setting the values to false
I’ve tried
ProductTabsRecipeSub.Form.AllowEdits = False
ProductTabsRecipeSub.Form.AllowAdditions = False
ProductTabsRecipeSub.Form.AllowDeletions = False
and
With me.ProductTabsRecipeSub.Form
.AllowEdits = False
.AllowAdditions = False
.AllowDeletions = False
endwith
The above was cribbed from another posting on this site
but to no avail
Any ideas? In this example, ProductTabsRecipeSub is a subform in a tabcontrol called ProductTabsControl on a form named ProductTabs
John