Hi,
We recently had some Windows 2000 workstations delivered and am having a bit of a problem with Access 97.
I have some code in an access module to create a word document based on a template stored on a network drive and then chuck data into said document.
Problem is, I am getting the following message (that I didnt get on win98 or WinNT 4.0):
Runtime error 5981.
Could not open macro storage.
The code is:
Option Compare Database
Option Explicit
Dim wrdapp As Word.Application, newdoc As Word.Document, myRange As Word.Range
Sub CreateTrainerLetter(intIndex As Integer)
Call CreateWordObject
wrdapp.Visible = True
--THIS IS THE LINE THAT CAUSES THE ERROR--
Set newdoc = wrdapp.Documents.Add(Template:="G:\ETAResources\Office resources - forms, logos, maps etc\templates\eta templates\Blank paper.dot"
-------------------------------------------
Also, after some tinkering I have found that the code runs fine when a user with admin rights runs it, but normal users get the error.
Anyone able to help? its driving me mad!
We recently had some Windows 2000 workstations delivered and am having a bit of a problem with Access 97.
I have some code in an access module to create a word document based on a template stored on a network drive and then chuck data into said document.
Problem is, I am getting the following message (that I didnt get on win98 or WinNT 4.0):
Runtime error 5981.
Could not open macro storage.
The code is:
Option Compare Database
Option Explicit
Dim wrdapp As Word.Application, newdoc As Word.Document, myRange As Word.Range
Sub CreateTrainerLetter(intIndex As Integer)
Call CreateWordObject
wrdapp.Visible = True
--THIS IS THE LINE THAT CAUSES THE ERROR--
Set newdoc = wrdapp.Documents.Add(Template:="G:\ETAResources\Office resources - forms, logos, maps etc\templates\eta templates\Blank paper.dot"
-------------------------------------------
Also, after some tinkering I have found that the code runs fine when a user with admin rights runs it, but normal users get the error.
Anyone able to help? its driving me mad!