I have a form with a sub-form. If a checkbox on the main form is false then I want a text box on the sub-form to NOT be enabled.
I am trying this but get an error... "Application-defined or object-defined error"
The main form is frmQuoteOrderDetail
The sub-form is subfrmOrderDetailsSizes
The checkbox on the main form is chkbxYSqty
The textbox on the sub-form is txtYSqty
My code so far:
If Forms!frmQuoteOrderDetail.Form!subfrmOrderDetailsSizes.Form.chkbxYSqty = False Then
Me.txtYSqty.Enabled = False