Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error '70' - Permission Denied

Status
Not open for further replies.

mlw

Programmer
Joined
Nov 9, 2000
Messages
1
Location
US
Hello. I am new to VB and am working on a program that opens Word documents and converts them to PRN format. The following code is giving me the "Permission Denied" error when I even try to compile this project:

Set gEnv = rdoEngine.rdoEnvironments(0)

It actually highlights the "rdoEnvironments", showing me I don't have rights to this particular object/property. I have verified I have referenced the "Microsoft Remote Data Object 2.0" in Project/References, but I still cannot compile the program successfully. Any ideas would be appreciated. Thanks in advance.
 
Whenever I get the permission denied error, it always means the file is marked Read-Only. Make sure its not marked read-only. Otherwise, I have no idea.
 
I have just run the code:

Dim gEnv As Object
Set gEnv = rdoEngine.rdoEnvironments(0)
Set gEnv = Nothing


without any problem, but I am logged in as administrator. I am going to try as me, so I will post what happens in a minute.

Simon
 
It also worked when logged in as me - it was a long shot, but I have previously had a Permission Denied error and logging in as administrator solved the problem!!!

Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top