I'm trying to write a macro that will change the Visible property of a subform from "no" to "Yes". I've attempted to use the SetValue function in the macro.
In the "Item" field of the Macro, I used the format Forms!FormName.Visible , where "FormName" is the name of the form I'm using as the subform. In the "Expression" field of the macro, I've tried setting the value to yes, true and -1.
I am getting two error messages. First I get an error message that "Production/Release Data can't parse the expression". When I add brackets around the form name, the software will automatically add brackets around the property name [Visible], but then the macro will save.
The second error message occurs when I try to run the saved macro, I get a message that "the object I referenced in the Visual Basic procedure as an OLE object isn't an OLE object".
Is there a different function (other than SetValue) I should try? Or do I have the wrong syntax in the Item field of the macro?
Thanks in advance for the help... much appreciated.
JR
In the "Item" field of the Macro, I used the format Forms!FormName.Visible , where "FormName" is the name of the form I'm using as the subform. In the "Expression" field of the macro, I've tried setting the value to yes, true and -1.
I am getting two error messages. First I get an error message that "Production/Release Data can't parse the expression". When I add brackets around the form name, the software will automatically add brackets around the property name [Visible], but then the macro will save.
The second error message occurs when I try to run the saved macro, I get a message that "the object I referenced in the Visual Basic procedure as an OLE object isn't an OLE object".
Is there a different function (other than SetValue) I should try? Or do I have the wrong syntax in the Item field of the macro?
Thanks in advance for the help... much appreciated.
JR