(Temporarily) disable code

  • Thread starter Thread starter John
  • Start date Start date
J

John

How can I change a large number of code rows into comments. At the moment I
manually put a ' before every row. Can this be done in one action with
perhaps another character than ' ?
Thanks,
John
 
Dear John:

If you are in the IDE, you can customize your menu to add a "Comment Block"
and "Uncomment Block". Then you can simply highlight the code you want to
comment out, and perform the commenting/uncommenting with one click.

In a coding window, right-click on the menu bar, select "Customize...",
click on the "Edit" category. Scoll down the Commands list until you see
"Comment block". Click and drag it to your menu, dropping it where you like.
(Repeat for "Uncomment block").

HTH
 
Oh, and in Access 2007, if you are using it - and if I recall correctly -
these two items are already present on the "Edit" menu in the IDE.
 
Thanks Fred. Works like a charm!
John

Fred Boer said:
Dear John:

If you are in the IDE, you can customize your menu to add a "Comment
Block" and "Uncomment Block". Then you can simply highlight the code you
want to comment out, and perform the commenting/uncommenting with one
click.

In a coding window, right-click on the menu bar, select "Customize...",
click on the "Edit" category. Scoll down the Commands list until you see
"Comment block". Click and drag it to your menu, dropping it where you
like. (Repeat for "Uncomment block").

HTH
--
Fred Boer - Amateur Access Enthusiast
Interests: Library software / Z39.50 / Web Services
Freeware Small Library Application available here:
http://www3.sympatico.ca/lornarourke/
 

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