Solved

Error msg in Access program

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

856 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