Pressing F5 to run code.

GrexP

Thanks, Grex
Local time
Today, 09:34
Joined
Aug 1, 2007
Messages
51
In a module sometimes pressing F5 runs the code and sometimes the macro window comes up. What determines the behavior? Access 2003.
 
I think all code in a form or report class module and all code expecting parameters in standard modules gives the macro window.
 
I think all code in a form or report class module and all code expecting parameters in standard modules.


Parameters, yes, I think that is the key. If a routine in a module is expecting a parameter it will not run when you press F5. If it has no input parameter it will run.

Thanks.
 

Users who are viewing this thread

Back
Top Bottom