Table of contents
Collapse the table of content
Expand the table of content

Object is invalid or no longer set. (Error 3420)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Applies to: Access 2013 | Access 2016

You are attempting to reference an object that is no longer valid or has not been set.

Possible causes:

  • The object has been closed.

  • The object has been orphaned (the parent object has been closed or deleted).

  • The object is out of scope.

  • The object library is not registered in the Microsoft Windows Registry.

  • You are trying to reference a method or property of the collection, but you have not assigned it to a variable first. For example, to reference the Name property, use the following:

  Dim dbsPublish As Database 
Set dbsPublish = OpenDatabase("BIBLIO.mdb")
dbname = dbsPublish.Name

Access for developers forum on MSDN
Access help on
Access help on
Search for specific Access error codes on Bing
Access forums on UtterAccess
Access wiki on UtterAcess
Access developer and VBA programming help center (FMS)
Access posts on StackOverflow

© 2018 Microsoft