I have a form (let's call it UserMain) with a subform (UserSub). The control that contains the UserSub form is UserSubControl.
I want to set a field called details in the subform to be disabled if it has data in it already, and enabled if it is blank.
When I try to write a macro to control the property, I wrote
[Forms].[UserMain].[UserSubControl].[Form].[details].enabled. the Macro recognizes that the field is blank or populated, but when it tries to execute the setproperty, it gives me an error that the control is misspelled or doesn't exist.
If I try with a VBA module, again the application can see if the field is blank or not, but gives me error 91 - Object variable or With block variable not set.
It's driving me crazy. Can anyone help?