Solved

Error msg in Access program

Posted on 2014-12-01
2
113 Views
Last Modified: 2014-12-01
I have, hopefully, a quick easy question.  I have an access 2010 program and one of my users got an error "The expression you entered refers to an object that is closed or does not exist".

They had pressed a button for one screen and then pressed a button for another screen.  The odd thing is that when I do exactly what they did (or claimed to do) I did not get the error.

DOes anyone have an idea as to what I could look for?

Thanks
0
Comment
Question by:alevin16
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 40473918
<<DOes anyone have an idea as to what I could look for?>>

 The problem is, the order of events is not always what you think it is.   On a faster/slower machine, forms may open/close faster.

 If your referring to these in code, then it may work fine on one machine and not another.

 Hard to offer anything more with specifics, but think through what your doing at that point and make sure you have good error handling in place.  Consider using MZ Tools (Freeware) to number your code lines and then use the undocumented VBA.ERL to return the line number as part of your error handling.

 This will vastly help pin-point the offending line and problem.

Jim.
0
 

Author Comment

by:alevin16
ID: 40473988
Thank you very much, that is exactly what it was.  I am going to work on it now.
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question