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

Chapter 8. VBA 101: The Basics of VBA > Adding Comments to Your Code

Adding Comments to Your Code

Comments, which are color-coded in Access 97, are added to modules by using an apostrophe. The keyword Rem can also be used, but the apostrophe is generally preferred. The apostrophe can be placed at the beginning of the line of code or anywhere within it. Anything following the apostrophe is considered a comment. Figure 8.8 shows code containing comments.

Figure 8.8. Code containing comments that clarify what the subroutine is doing.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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