Application Error Messages with variables in the Description

  • Thread starter Thread starter dch3
  • Start date Start date
D

dch3

When working with errors that have descriptions that contain place holders
for object names, is there a way to retrieve the object name involved?

I have a custom error handler that displays a custom error message by
passing several parameters into a function to return a consistently formated
string for the error message...and avoid having to change millions of lines
of code if the message needs to be modified. When I pass in error such as
3200, I would like to return a complete message with the missing information.
The standard error message function uses AccessError() to get the error
description.

The record cannot be deleted or changed because table '|' includes related
records.
 
Use the Source property of the Err object
See the Object Browser for more info.
 
Thank you and thank you for warning the Earth on its impending
self-destruction.
 
The earth is not going to self destruct.
I am going to ordr Gort to destroy the earth if its inhabitants become a
threat to the universe. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top