Blocking form changes

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi

I have a main form with a sub form (Subform1). The sub form only has a tab
control on it and then each tab in turn has a sub form on it. I am trying to
block one of the sub forms on the tab control, so I have tried this;

Forms![Main]![SubForm1].Form![SubSubForm1].Form.AllowEdits = False

But this has not worked. Any ideas?

Thanks

Regards
 
John,

What event is this code being run from?

Make sure you are using the names of the subform controls, rather than
the names of the forms used for the subforms... these are not
necessarily the same.
 
Back
Top