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

Hour 23. VBA Introduced > Adding Comments to Code

Adding Comments to Code

You add comments, which have been color-coded in versions of Access since Access 97, to modules by using an apostrophe ('). You can place the apostrophe at the beginning of the line of code or anywhere within it. The compiler considers anything following the apostrophe a comment. Figure 23.9 shows code that contains comments.

Figure 23.9. 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