Share via

Error when opening a graph

Anonymous
2024-05-03T16:32:33+00:00

When I tried to open a graph, I get the following message:

The expression On Open you entered as the event property setting produced the following error. Return without GoSub.

* The expression may not result in the name macro, the name of a user-defined function, or [Event Procedure].

* There may have been an error evaluating the function, event, or macro.

How can this be fixed?

Thank you

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

5 answers

Sort by: Most helpful
  1. George Hepworth 22,855 Reputation points Volunteer Moderator
    2024-05-03T19:01:48+00:00

    Sometimes sharing a successful solution can "pay forward" that success and help others down the road.

    Would you like to do that with this solution?

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-05-03T18:53:16+00:00

    Duane

    I found a work around that solved the issue. Thanks for the input.

    Was this answer helpful?

    0 comments No comments
  3. Duane Hookom 26,825 Reputation points Volunteer Moderator
    2024-05-03T18:30:39+00:00

    The more important question we need answered is any code (or macros) in the report or in the procedure that opens the report. Does your code compile? Do you use Option Explicit at the top of every module?

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-05-03T17:20:13+00:00

    Some Clarification. I am trying to open the report which contains a graph.

    Was this answer helpful?

    0 comments No comments
  5. Duane Hookom 26,825 Reputation points Volunteer Moderator
    2024-05-03T17:07:58+00:00

    You should start by copying and pasting any relevant code so we can help. You typically don’t open a graph/chart. You open a form or report containing the graph control.

    Did the form/report enter work?

    Was this answer helpful?

    0 comments No comments