Adding Comments to Your Code
You add comments, which have been color-coded since the release of Access 97, to modules by using an apostrophe ('). You can also use the keyword Rem, but the apostrophe is generally preferred. You can place the apostrophe at the beginning of the line of code or anywhere within it. Anything following the apostrophe is considered a comment. Figure 7.9 shows code containing comments.
Figure 7.9. Code containing comments that clarify what the subroutine is doing.

TIPMany people ask if it is possible to comment several lines of code at once. Although not easily discoverable, the process is quite simple. Within the VBE, right-click any toolbar or menu bar and display the Edit toolbar. Click the Comment Block tool on the Edit toolbar. To uncomment the block of code, click the Uncomment Block tool.