Compile all modules

J

JCP

Is it possible to create a function to compile all VBA, all modules?
I remember in access 97 it was possible.

Thanks
 
J

John W. Vinson

Is it possible to create a function to compile all VBA, all modules?

In Access 2000 and later, the entire VBA Project is compiled when you compile
anything. It's all one unitary thing.

I'll routinely add the "Compile Project" button to the VBA editor toolbar,
just to avoid having to use Debug... Compile from the menu.

John W. Vinson [MVP]
 
S

Stuart McCall

JCP said:
Is it possible to create a function to compile all VBA, all modules?
I remember in access 97 it was possible.

DoCmd.RunCommand acCmdCompileAllModules

ought to do it.
 
Top