Form/Module Code Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Not being a trained programmer, I was just wondering if it is good practice
to write all the code in the form code section or is it better to jump from
the form code to a module to do the work after clicking on a command button
on the form ??
 
Not being a trained programmer, I was just wondering if it is good practice
to write all the code in the form code section or is it better to jump from
the form code to a module to do the work after clicking on a command button
on the form ??

Being a self-taught (although Microsoft certified - FWIIW) trainer, I
usually tell people to place their shared code in the module, and
place form-specific code in the form. That way they can simply move
the form to another project without having to take the module as well.
Less code bloat and more modular are my catchcries.

- David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top