user3646932
user3646932

Reputation: 496

Finding a function definition in MS Access VBA editor

I am trying to edit some code in an existing project with tons of forms, modules, and custom functions. In the relevant event handler I find this:

Action = "Some text here I'd rather not share " & Me.UpdatedPrimary
UpdateLog (Action)

The UpdateLog() function is not anywhere in this module. How do I find it without manually looking through dozens upon dozens of form objects and modules?

Not very familiar with this code editor. Thank you.

Upvotes: 0

Views: 1118

Answers (1)

Andre
Andre

Reputation: 27644

Answered in comments.

Shift + F2 -- the most important keyboard shortcut in the VBA editor. :)

Or via context menu [right_click] -> Definition or menu View -> Definition.

Note that it doesn't work only for functions, but also for variables etc.

Upvotes: 3

Related Questions