Share via

Autoexec Runtime Error 2950

Anonymous
2011-03-11T01:24:09+00:00

Hi,

I currently have a runtime error 2950 that pops up with the autoexec command.  Action name is runcode and the argument is ribbon().  How can I fix this and make this error go away?

Thanks

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

3 answers

Sort by: Most helpful
  1. Anonymous
    2011-03-11T02:23:54+00:00

    I fixed this issue.  I placed the  "DoCmd.ShowToolbar "Ribbon", acToolbarNo" code into the on activate section of the switchboard.  I wanted to disable the ribbon for users.  I still wouldn't mind knowing how I can have this included into the autoexec command.  Even after I tried to change the function name to HideRibbon, it still didn't work.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2011-03-11T01:33:20+00:00

    In my autoexec macro I have a runcode action and the function name is ribbon(). I also created a module that has this code:

    Function Ribbons()

        DoCmd.ShowToolbar "Ribbon", acToolbarNo

    End Function

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2011-03-11T01:30:54+00:00

    First of all, do you have a function called ribbon?  If so, rename it.  Ribbon is an Access Reserved Word.  If you don't have a function called ribbon, then remove that runcode action.

    Was this answer helpful?

    0 comments No comments