This message - Run-time error '2101'... - is raised when double clicking a field on a form, to open another form.
Full message:
Run-time error '2102'
The form name '[Product Transactions View Subform]' is misspelled or refers to a form that doesn't exist.
The form exists, opens as a Display form and opens when clicked directly, and is spelled correctly.
Same process is used with two other forms in the same app w/o the message being raised.
Here's the code behind the double click:
DoCmd.OpenForm "[Product Transactions View Subform]", acNormal, , "[ProductID=" & Me.[ProductID]
Looking at the code when the message is raised, Me.[ProductID] contains the selected valve.
I've deleted the initial form and created a new form and tried various form property settings.
And I've imported all objects into a new container as well as scoured the threads, implementing some of the suggestions to no avail.
Access 2016.
What am I missing?
Full message:
Run-time error '2102'
The form name '[Product Transactions View Subform]' is misspelled or refers to a form that doesn't exist.
The form exists, opens as a Display form and opens when clicked directly, and is spelled correctly.
Same process is used with two other forms in the same app w/o the message being raised.
Here's the code behind the double click:
DoCmd.OpenForm "[Product Transactions View Subform]", acNormal, , "[ProductID=" & Me.[ProductID]
Looking at the code when the message is raised, Me.[ProductID] contains the selected valve.
I've deleted the initial form and created a new form and tried various form property settings.
And I've imported all objects into a new container as well as scoured the threads, implementing some of the suggestions to no avail.
Access 2016.
What am I missing?
Last edited: