I am new to doing this with Access. But with Excel I would go to the VBE, type in "Sub MySub" for example, add in the code, then go back to Excel and select Tools/Macros . . . and "MySub" is listed there for running.
OK, so I did the same thing with Access so that I can run some code, and again...