I am using a non-default instance of a form and therefore it can not be refered to by name. See the following link, it explains what I am trying to do. (quick reading, about a page) The gist of the last paragraph is that I can only refer to the form by its index in the form collection.
With either the default or non-default instance the things are the same regarding using the index: you have to use:
Forms(3)
to refer to te open form having the index of 3
This notation is not supported in queries, so you have to write a function that would return a value. That value can be used in a query.
Pass the index to a GlobalVariable and use the GlobalVariable in the function. Just as in my previous post.
Moreover, you can work with the controls and properties of any instance of any form:
Forms(3)("ControlName" or Forms(3)(0)
Forms(3).AllowAdditions = False
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.