Share via

MS Access 2016 FunctionCode Error

Anonymous
2018-08-17T12:25:18+00:00

I have a macro that worked wonderful in MS Access 2010.  Our department upgraded to Office365 and now I continuously have issues with it.  I am getting this error message when running my Macro to update the DB.  

It stops on the RunCode; Function Name GetUserInfo().  The purpose of this macro is to run other macros that connect to an Oracle DB on the server to return the agency cases received counts and input them into the table.

I've tried everything I have researched on the internet and nothing has worked.  These are the references that are checked:

Can someone help me please?  This database is used to track our agency data submissions.  I'm not an expert in VB.  

Thank you in advance.

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

9 answers

Sort by: Most helpful
  1. Tom van Stiphout 40,211 Reputation points MVP Volunteer Moderator
    2018-08-20T13:28:39+00:00

    Maybe one of those references had a GetUserInfo function, and we can see how that would cause ambiguity.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-08-20T11:46:00+00:00

    All of a sudden, the macros are working.  I made some changes to References and changed them back and now it is all working.  I don't get it.  

    I am going to try and create a new blank DB using the MS Access 2016 version we have now and import all of the DB tables, queries, form, macros, modules, etc. 

    Thank you.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-08-20T11:24:43+00:00

    That suggests there is another object named GetUserInfo.  Open any module and undertake a 'find' (Ctrl+F) on GetUserInfo for the current project.

    Do you get the same error if you enter ? GetUserInfor in the immediate window (Ctrl+G)?

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2018-08-20T10:33:09+00:00

    Yes, it stops at the GetUserInfo () Run Code.  That is when I receive the error message "The expression contains an ambiguous name.  Verify that each name in the expression refers to a unique object."

    Was this answer helpful?

    0 comments No comments