Share via

Run time error 91

Anonymous
2024-12-17T20:18:18+00:00

I get this code and run debug then I get the following

LogError Err.Description, VBE.ActiveCodePane.CodeModule.name & "raskaj1", True

Microsoft 365 and Office | Access | For business | 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

1 answer

Sort by: Most helpful
  1. George Hepworth 22,855 Reputation points Volunteer Moderator
    2024-12-17T20:41:20+00:00

    VBA error 91 means: "Object variable not set"

    https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/object-variable-not-set-error-91

    Somewhere in the procedure where this line runs, your code tries to work with an object variable that has not been set.

    We'd have to see the entire procedure to be able to guide you further in that regard.

    Was this answer helpful?

    0 comments No comments