Results 1 to 4 of 4
  1. #1
    mitchmcc is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2011
    Location
    St. Petersburg, FL
    Posts
    19

    Invalid or unqualified reference

    My question is more general than specific. Yes, I am getting the error mentioned in the Title. The full text of the message is:



    The expression On Close you entered as the event property setting produced the following error: Invalid or unqualified reference.
    This is from an Access project that I inherited. To make it worse, I think that I may have simply fat-fingered the VBA file somewhere, but this error does not tell me where, and this happens immediately when I try to go into Design mode.

    Is there any other information I can get (or something I can do) to find out exactly where/why Access (2007) is unhappy?

    Thanks,

    Mitch

  2. #2
    mitchmcc is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2011
    Location
    St. Petersburg, FL
    Posts
    19
    FYI, I found my problem, but the general question still applies. The problem was that I inadvertently used "!" for "Not".

    Any answers to my general question about debugging these types of errors would still be appreciated.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Download a free utility called MZTools. http://www.mztools.com/v3/mztools3.aspx

    Whenever you create a module, use MZTools to apply Error Handling (which it will do at the click of a button).
    There are many other utilities included in the MZTools package.

    ! has special significance in Access.

  4. #4
    mitchmcc is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2011
    Location
    St. Petersburg, FL
    Posts
    19
    Thanks for the tip. I will check it out.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 7
    Last Post: 08-28-2011, 02:07 PM
  2. "Invalid Database Object Reference"
    By jgelpi16 in forum Queries
    Replies: 4
    Last Post: 06-28-2011, 06:39 AM
  3. invalid database object reference
    By survivo01 in forum Access
    Replies: 1
    Last Post: 06-02-2011, 04:02 PM
  4. Invalid database object reference.
    By jgelpi16 in forum Programming
    Replies: 4
    Last Post: 04-11-2011, 02:48 PM
  5. docmd.openform Invalid database object reference
    By snoopy2003 in forum Programming
    Replies: 5
    Last Post: 03-15-2011, 09:11 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums