Solved

Error msg in Access program

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
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 …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
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…

747 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

12 Experts available now in Live!

Get 1:1 Help Now