Share via

macro executed in control panel

Anonymous
2018-07-09T12:23:18+00:00

Hello!!! I am trying to create a control panel with different options. In one of the options or items I want to associate a macro to be executed when selecting it. However, although I have them defined when I try to select one of them, it does not appear in the list the “control panel” offers/shows. In fact, none appears.

A hint: the macros are listed as modules together with the forms, tables, etc

What could it be the issue?

Thanks for the answer.

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

11 answers

Sort by: Most helpful
  1. Anonymous
    2018-07-19T10:22:38+00:00

    Maybe there is a difference in the language version you are using. But in every version of Access I have used macros and modules are different. Modules contain functions and procedures of VBA coding. When addressing a function or proc you use the name of the function or proc. Macros tend to contain a single functionality. And are called by the name of the macro.

    ok Thanks.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2018-07-15T11:18:56+00:00

    This doesn't really help. By "control panel" I believe you are referring to either a menu form or switchboard. If you want to run a macro upon clicking on a button on a form, you can use the RunMacro method (DoCmd.Runmacro "macroname") Or you can put the macroname in the On Click property.

    If you are referring to the Nav Pane, I do not recommend exposing the Nav Pane to users. While its fine if you are the only user, it gives other users too much access into your application.

    many thanks scott!!!!

    Was this answer helpful?

    0 comments No comments
  3. ScottGem 68,830 Reputation points Volunteer Moderator
    2018-07-13T15:39:25+00:00

    This doesn't really help. By "control panel" I believe you are referring to either a menu form or switchboard. If you want to run a macro upon clicking on a button on a form, you can use the RunMacro method (DoCmd.Runmacro "macroname") Or you can put the macroname in the On Click property.

    If you are referring to the Nav Pane, I do not recommend exposing the Nav Pane to users. While its fine if you are the only user, it gives other users too much access into your application.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2018-07-13T14:59:52+00:00

    Can you post a screenshot please.

    Yes Daniel. Here it is:

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2018-07-09T18:36:07+00:00

    Can you post a screenshot please.

    Was this answer helpful?

    0 comments No comments