I have some VBA in a procedure that is an event procedure from a form. I want this code to run when Access opens, so I have created a macro with a RunCode event, but this required a function. I've never worked with functions.
I added the following just above my current procedure;
Public Function RunAuto()
Call MyEventProcedure
End Function
And I ensured the entry on the Macro referred to "RunAuto().
However, it won't work.
Says it cannot find the function.
Any advise?
Do I need to create a new module? I tried that, and added the same code, but now it says "compile error sub or function not defined"
Help!
I added the following just above my current procedure;
Public Function RunAuto()
Call MyEventProcedure
End Function
And I ensured the entry on the Macro referred to "RunAuto().
However, it won't work.
Says it cannot find the function.
Any advise?
Do I need to create a new module? I tried that, and added the same code, but now it says "compile error sub or function not defined"
Help!