ACC2000: Properties Collection Returns Error for CurrentProject and CurrentData Objects (209788)
The information in this article applies to:
This article was previously published under Q209788 This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
Advanced: Requires expert coding, interoperability, and multiuser skills.
SYMPTOMS
All object collections under the CurrentProject and CurrentData objects contain a Properties collection. However, when you try to refer to the Properties collection of any object in a collection under the CurrentProject or CurrentData object, you may receive the following error message:
Run-time error '2467':
The expression you entered refers to an object that is closed or doesn't exist.
RESOLUTION
Although you cannot use the Properties collection to refer to properties of these objects, you can refer to the properties directly. For example, use:
Debug.Print CurrentData.AllTables(1).Name
instead of:
Debug.Print CurrentData.AllTables(1).Properties("Name")
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | kberrmsg kbprb KB209788 |
---|
|