Link to home
Start Free TrialLog in
Avatar of KarenPRuskin
KarenPRuskinFlag for New Zealand

asked on

RunTime Error Displayed in mdb but not mde database

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
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

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
ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KarenPRuskin

ASKER

Hey thanks, a response within 5 minutes.  I'll check out your links, but sounds like exactly what I need.