Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

RunTime Error Displayed in mdb but not mde database

Posted on 2011-02-21
4
Medium Priority
?
427 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 2000 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

885 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