Solved

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

Posted on 2004-08-27
4
238 Views
Last Modified: 2010-04-17
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!
0
Comment
Question by:hrogers
4 Comments
 
LVL 5

Accepted Solution

by:
rsriprac earned 40 total points
ID: 11918665
>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
 
LVL 3

Expert Comment

by:aravindtj
ID: 11921600
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

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is an explanation of a simple data model to help parse a JSON feed
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now