Skip to main content
Suggested answer

Microsoft Visual Basic - Run-time error '70': Permission denied

editSubscribe (0) ShareShare
Posted on by 22,782

I have an odd problem at the moment. In the last few weeks I have started to get the above error on my development box when modifying a form or report by adding in an ADO connection.

The error appears on the line:
Set mobjConn = UserInfoGet.CreateADOConnection
I can use UserInfoGet to get the IntercompanyID or other values; if I move the code to the client's system the VBA works without problem. It only errors on my development box.