F
FBxiii
Hi.
I have created a DB in Access that is used by a person who only has Runtime
access to the Application.
The App uses OLE automation to complete a standard letter template by using
a Find/Replace function. Sometimes this works fine and other days it does
not!
The code used for the automation is held within its own module and the
reference to Word is stored as a Global variable - appWord.
I am using Set appWord = GetObject("Filename.doc","Word.Document") to open
the template.
It seems on some days the App loses the reference to appWord as the user
gets an error of 'Error 91 - Object not set/found'.
I have trapped this error and am trying to use; Set appWord =
GetObject(,"Word.Document") to recall the reference but this gives me a new
error number 429.
This may seem a little confusing but does anyone have any suggestions?
Thanks in advance,
Steve.
I have created a DB in Access that is used by a person who only has Runtime
access to the Application.
The App uses OLE automation to complete a standard letter template by using
a Find/Replace function. Sometimes this works fine and other days it does
not!
The code used for the automation is held within its own module and the
reference to Word is stored as a Global variable - appWord.
I am using Set appWord = GetObject("Filename.doc","Word.Document") to open
the template.
It seems on some days the App loses the reference to appWord as the user
gets an error of 'Error 91 - Object not set/found'.
I have trapped this error and am trying to use; Set appWord =
GetObject(,"Word.Document") to recall the reference but this gives me a new
error number 429.
This may seem a little confusing but does anyone have any suggestions?
Thanks in advance,
Steve.