Hi. I have a main form and a sub form.
In my mainfrm I have a text field that is REQUIRED before I can enter any data into the subfrm.
Can anyone help me with this code and how I would relate the two? I know how to do it when all the controls (text fields) are on the same form, but when it's a sub form and a main form then I don't know how to do it anymore.
Help please?
This is what I used for controls that are within the same form.
I tried this
and placed this on the On Load of the mainfrm and After Update of the control in the mainfrm, but it didn't work.
When you are using this syntax:
what does subfrm and ControlName refer too?
is subfrm the name of the control in the SUBFORM or MAINFORM and same question for ControlName?
In my mainfrm I have a text field that is REQUIRED before I can enter any data into the subfrm.
Can anyone help me with this code and how I would relate the two? I know how to do it when all the controls (text fields) are on the same form, but when it's a sub form and a main form then I don't know how to do it anymore.
Help please?
This is what I used for controls that are within the same form.
I tried this
Code:
Me!subfrm.Form!ControlName.Enabled
When you are using this syntax:
Code:
Me![COLOR=#ff0000]subfrm[/color].Form![COLOR=#ff0000]ControlName[/color].Enabled
is subfrm the name of the control in the SUBFORM or MAINFORM and same question for ControlName?