The object can be opened when referencing a database, only. Open the database before opening the object.