I am sure I must be doing something silly...I am just trying to set the value of a control in my subform to false (the code is embedded into my main form behind a button).
I have tried numerous different syntax.... putting into square brackets, round brackets, referencing the subform directly, full stops instead of exclamation marks...even using a macro. When I search on line there is a lot of conflicting info on referencing subforms.
With this code below I get error 438 "object doesn't support this property or method" whereas before I was getting the error message that it didn't recognise the object at all but I'm out of options on what to try now...any help appreciated thanks
DoCmd.SetProperty Forms!FrmProcessEmails!SubAdult.available, acPropertyValue, 0
I have tried numerous different syntax.... putting into square brackets, round brackets, referencing the subform directly, full stops instead of exclamation marks...even using a macro. When I search on line there is a lot of conflicting info on referencing subforms.
With this code below I get error 438 "object doesn't support this property or method" whereas before I was getting the error message that it didn't recognise the object at all but I'm out of options on what to try now...any help appreciated thanks
DoCmd.SetProperty Forms!FrmProcessEmails!SubAdult.available, acPropertyValue, 0