Within my main form I have four levels of nested subform. Each subform is a datasheet. From the On_Load event of the main form, I call a procedure to turn on/off editing of the subforms based on the login ID. I can only change the allowedits property of the highest level subform. If I try setting this property on any subform nested below that, I get message #2455, "You entered an expression that has an invalid reference to the property Form/Report." Here is the code I am using to set allowedits in a subform (fsubProjects is the top-level subform):
Me!fsubProjects.Form!fsubProjections.Form.AllowEdits = False
I think what I'm trying to do is possible, so I'm not sure if I can't do it from the load event, or if it is because I am using datasheets.
Me!fsubProjects.Form!fsubProjections.Form.AllowEdits = False
I think what I'm trying to do is possible, so I'm not sure if I can't do it from the load event, or if it is because I am using datasheets.