This is a rather complex and technical question and I would guess only a few may have had prior experience with such issues. If you have done application design between different MS Office programs and have ever handled errors between the different programs, I would appreciate your help.
I am trying to do a mail merge project using MS Access to pipe data into an MS Word mail merge template. Everything is working great and we are having no problems, but I am a stickler about writing error handling routines so I am trying to handle errors that may occur in either Access or the Word app I reference. Here is an example of the problem.
Inside of an [red]MS Access[/red] program we build the mail merge properties on a referenced [purple]WORD.APPLICATION[/purple] as [blue]WApp[/blue]. Let's say that the [blue]WApp[/blue] tries to open a file but cannot find the file. [blue]WApp[/blue] generates an error that we normally handle within the [purple]Word Application[/purple], which in this case propogates an error raise into [red]MS Access[/red]. Though an error is raised in [red]MS Access[/red], our [red]Access[/red] program only knows is that an error occurred. [red]MS Access[/red] has no error number or description, since the native error occurred in the [purple]Word Application[/purple]. The question is, how can I get the error from [blue]WApp[/blue] so that I can handle such occurrences in the [red]Access[/red] program?
I am trying to do a mail merge project using MS Access to pipe data into an MS Word mail merge template. Everything is working great and we are having no problems, but I am a stickler about writing error handling routines so I am trying to handle errors that may occur in either Access or the Word app I reference. Here is an example of the problem.
Inside of an [red]MS Access[/red] program we build the mail merge properties on a referenced [purple]WORD.APPLICATION[/purple] as [blue]WApp[/blue]. Let's say that the [blue]WApp[/blue] tries to open a file but cannot find the file. [blue]WApp[/blue] generates an error that we normally handle within the [purple]Word Application[/purple], which in this case propogates an error raise into [red]MS Access[/red]. Though an error is raised in [red]MS Access[/red], our [red]Access[/red] program only knows is that an error occurred. [red]MS Access[/red] has no error number or description, since the native error occurred in the [purple]Word Application[/purple]. The question is, how can I get the error from [blue]WApp[/blue] so that I can handle such occurrences in the [red]Access[/red] program?