Which is more efficient, Procedures on a form or in a module

I have a very large module (.bas) containing maybe 40 procedures. I third of these pertain to reports. Would it be more efficient to have the report procedures moved to the Form used for reports?

When A procedure in a .bas is executed, does the whole .bas get loaded into memory?



Sorry I only have 40 points!
hrogersAsked:
Who is Participating?
 
rsripracConnect With a Mentor Commented:
>I have a very large module (.bas) containing maybe 40 procedures. I third of these pertain to reports. Would it be more efficient to have the report procedures moved to the Form used for reports?

Yes if some form is used more infrequently then others, it is worth doing so.

>When A procedure in a .bas is executed, does the whole .bas get loaded into memory?

Yes, the whole module is loaded when a routine is called upon.

-RAm
0
 
aravindtjCommented:
Use modules. It is loaded in memory only once.
It can be reusable by another methods.

Using modules is a better way.

All the best.
0
All Courses

From novice to tech pro — start learning today.