Solved

Error msg in Access program

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

912 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now