• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. Getting Around in the Visual ... > Establishing Good Habits in Coding

Establishing Good Habits in Coding

Getting the job done is rarely your only goal when customizing your database using VBA code. From the very beginning, you should think like a professional developer by writing readable code that’s easy to follow with little effort. We offer three recommendations:

  • Name variables and objects consistently.

  • Indent your code to show structural flow.

  • Comment your code so you can remember what your code does later—because you will forget. Besides, you might not be the one updating your code.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint