read only form and enabled sub form

B

BMoroneso

I'm trying to open a form and make the main portion (frmClient) read only.
I'm using a tab control to hold 5 subforms. I'd like to have 1 of those
subforms (frmRelationshipClient) read only and the other 4 to be enabled. In
the VB macro, I'm setting the form's Allow Edits property to False. How do I
reference the subform to make it read only?
Thanks in advance!
 
L

Linq Adams via AccessMonster.com

If your main form has AllowEdits set to False, AllowEdits will be set to
False for all subforms, regardless of how you set up the individual subforms!
Subforms inherit this property (as well as AllowAdditions and AllowDeletions)
from the main form. In order to "mix and match" like you want, you'll have to
set AllowEdits to True and then individually lock each textbox on the forms
that you want to be Read-Only.
 
Top