Solved

Error msg in Access program

Posted on 2014-12-01
2
112 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 57

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

749 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