>No i am not whwneevr i use the email function.
>
>if an error occurs it will call the mapierror.prg which is in the programs folder.
>
>I am getting a message saying unable to find mapierror.prg
Your Default directory at the time the ERROR occurs would need to be the directory that Programs resides in. I feel you are not pointing to the proper directory because of the "Program/..."
Try to include the programs directory in the set path to command.
set path to x:\work\email;x:\work\email\programs
on error do "MapiError"
Tracy