- Local time
- Today, 01:46
- Joined
- Feb 28, 2001
- Messages
- 27,140
@MajP - Unfortunately, your assertion is at best partly true. All activated instances of forms normally have unique names in the Forms collection, some of which MIGHT be derived by adding an underscore and a number to the form's formal (non-loaded) name as defined in the AllForms collection. But if you step through the Forms collection by number (starting, of course, from 0 because it IS a collection), you COULD find a form with a number but a ZLS for a name. I've seen it once. And it is a son-of-a-witch to debug. I think, however, that only one form can have that name so if it would happen again, the next case would have "_1" as a name. Active forms CANNOT share names because it appears there is a uniqueness rule in force.
Think about it. If you want to be able to use the syntax Forms("xyz") to point to a single form yet you allow the XYZ form to be opened more than once for some bizarre reason, you could NEVER refer to the second instance unless it was qualified by something else. (Which it is - the underscore and a secondary instance number.) The same way that you can load the same table twice is the upper section of the query design grid, in which case the instance is qualified by underscore and a number.
Think about it. If you want to be able to use the syntax Forms("xyz") to point to a single form yet you allow the XYZ form to be opened more than once for some bizarre reason, you could NEVER refer to the second instance unless it was qualified by something else. (Which it is - the underscore and a secondary instance number.) The same way that you can load the same table twice is the upper section of the query design grid, in which case the instance is qualified by underscore and a number.