web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

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

(0) ShareShare
ReportReport
Posted on by 22,784

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.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Ian,

    Looks like this is unresolvable for Windows 8! Have you been able to find a solution for this?

  • Ian Grieve Profile Picture
    22,784 on at

    No, I have not been able to resolve the problem. I'm sure this did work until fairly recently, but not sure of exactly when.

    I am still investigating as I need a fix for myself, but also any client who has customisations and may be looking to upgrade (assuming Windows 8 is the problem)

  • Lisa at AonC.com Profile Picture
    921 Super User 2025 Season 2 on at

    I too am running into this for a client who upgraded from GP 2010 to GP 2015 ... I am not able to get the code to run on the local Windows 7 machine nor Windows 2012, even though all the references seem to be in place and the code is just a simple SELECT statement.  The DLL is locked down and I haven't found a way to change the permissions on it.  I too will keep searching!

  • Harold Worby Profile Picture
    1,331 on at

    Try using the fully qualified name VBADynamics.UserInfoGet.CreateADOConnection

    and check the VBA project's references.

    You need the 'Microsoft Dynamics GP VBA xx.00 Library' for your version of GP xx.00

  • Lisa at AonC.com Profile Picture
    921 Super User 2025 Season 2 on at

    Thank you for the suggestion ... Unfortunately it isn't working in my situation.

    I changed "Set cn = UserInfoGet.CreateADOConnection" to

    "Set cn = VBADynamics.UserInfoGet.CreateADOConnection"

    Same error.

    I do have a reference to Microsoft Dynamics GP VBA 14.00 Type Library.  However, GP 2010 is also on the machine and the reference Microsoft Dynamics GP VBA 11.00 Type Library is available but not marked.  

    I'm going to check with the client to see if GP 2010 can be uninstalled just in case there is a conflict.

    I'm interested in any other advice you may have!

    Lisa

  • Matt Connor Profile Picture
    65 on at

    Hi

    It seems that a GP 2015 install breaks UserInfoGet.CreateADOConnection on ALL installed versions of GP. Must be one of the shared DLLs?

    Matt

  • kjjson Profile Picture
    on at

    I am having the same issue on a GP 2015 install. Is there a workaround for this or another option to do this other than the UserInfoGet.CreateADOConnection?

    Thanks,

    Kevin

  • Matt Connor Profile Picture
    65 on at

    Hi Kevin

    The only workaround I've found so far is to use Windows authentication but it's not exactly a great solution. We need a fix from Microsoft really...

    M.

  • Tim Foster Profile Picture
    8,515 on at

    Have you filed an incident with support yet?

    Is there a defect number to reference?

    Tim

  • Suggested answer
    Steven Vallarian Profile Picture
    394 on at

    Cross-posting tammy's reply from partner support:

    Hi All, 

    Thank you for the questions. This is a known issue with the DLLs installed as a part of the GP2015 Dexterity Shared Components. We are working to have this addressed in a tax release to be shipped later this month.

    One thing to note is that once you install the GP2015 Dexterity Shared Components, you will get the error in both GP2013 and GP2015, if running/testing both on a single box. In order to get your GP2013 up and running again, uninstall the Dexterity Shared Components for BOTH GP2013 and GP2015; then reinstall the Dexterity Shared Components for GP2013 only. 

    Thank you,
    Tammy Torgerson

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
mtabor Profile Picture

mtabor 1

#2
Victoria Yudin Profile Picture

Victoria Yudin 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans