(Temporarily) disable code

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
 
F

Fred Boer

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
 
F

Fred Boer

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.
 
J

John

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/
 
Top