Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why Module over VBA behind a form

Status
Not open for further replies.

Zorro1265

Technical User
Nov 14, 2000
181
US
When should you try to make a module instead of just putting the full code behind an even on a form? I am trying to learn VBA and wonder when and where each is best used.

Thanks!
 
Subs and functions in modules can be called from anywhere in the database, including queries and reports. This is useful so you can reuse code rather than putting it on each form and bloating your database with code. Mike Rohde
rohdem@marshallengines.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top