Solved

RunTime Error Displayed in mdb but not mde database

Posted on 2011-02-21
4
421 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
ID: 34947281
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 - Microsoft MVP, Access and Data Platform) earned 500 total points
ID: 34947295
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
ID: 34947301
Hey thanks, a response within 5 minutes.  I'll check out your links, but sounds like exactly what I need.
0
 
LVL 75
ID: 34947327
You are welcome ...

mx
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access vs. Filemaker Pro vs. SQL Server 4 70
How to properly refer to a form in the code below 2 25
Copying an open file 3 22
Email Populated Report as PDF 2 15
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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…

821 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