Solved

RunTime Error Displayed in mdb but not mde database

Posted on 2011-02-21
4
418 Views
Last Modified: 2012-05-11
I've compiled my Front.mdb database so the users run Front.mde.  One report uses a filepath in a field to print a .jpg picture.  If the user has keyed in an invalid path (usually a typo, like an extra space), the error message isn't displayed in the .mde database, but if I copy the data and run it against my .mdb database a nice runtime error is displayed including the invalid path.  My question is, why doesn't the same runtime error appear for the end user running the .mde version.  The live system just fails, no error, no report.
RuntimeError.doc
0
Comment
Question by:KarenPRuskin
  • 3
4 Comments
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
You need to have specific error trapping wherein you are trapping 'expected' and unexpected errors and displaying appropriate 'friendly' error messages.  Otherwise, you will experience the issue that is occurring in your MDE version ... just shuts down.

So ... you need to add error trapping ...

mx
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
Comment Utility
In case you need them, here are some good links on the subject:


Runtime Error Handling
http://msdn.microsoft.com/en-us/library/bb256425.aspx  

Good white paper on error handling
http://www.fmsinc.com/tpapers/vbacode/Debug.asp    

more on error handling
http://allenbrowne.com/ser-23a.html  

Global error handler
http://www.everythingaccess.com/vbwatchdog.htm       

mx
0
 

Author Closing Comment

by:KarenPRuskin
Comment Utility
Hey thanks, a response within 5 minutes.  I'll check out your links, but sounds like exactly what I need.
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
You are welcome ...

mx
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server functions 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 Ac…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

771 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