Why does code turn brown in the code module?

M

M Skabialka

I do a lot of coding in forms, pretty much self-taught, and use the
debugging tools once in a while. However, sometimes when I am in the code
modules I accidentally click on the left side of the code window and a whole
section of code will turn brown, with brown circles to the left of every
line. Not knowing the purpose of this I click again and it goes away.

What is the purpose of this?
 
D

Dave Patrick

This sets a break point in the code. If you were to F5 (or run the form) the
code would always stop at this break point. Handy if you wanted to step (F8)
from that point to see what is happening. You can have multiple break
points.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I do a lot of coding in forms, pretty much self-taught, and use the
| debugging tools once in a while. However, sometimes when I am in the code
| modules I accidentally click on the left side of the code window and a
whole
| section of code will turn brown, with brown circles to the left of every
| line. Not knowing the purpose of this I click again and it goes away.
|
| What is the purpose of this?
|
|
 
C

Chris2

M Skabialka said:
Replaces adding 'stop' in a code line then?

Setting break-points is more useful, you don't have to alter your code
to get the execution to stop.


Sincerely,

Chris O.
 
F

fredg

I do a lot of coding in forms, pretty much self-taught, and use the
debugging tools once in a while. However, sometimes when I am in the code
modules I accidentally click on the left side of the code window and a whole
section of code will turn brown, with brown circles to the left of every
line. Not knowing the purpose of this I click again and it goes away.

What is the purpose of this?

In addition to what all the others have said about Breakpoint, if you
don't care for the brown color you can set it (as well as all the
other sections in the code window) to what ever color or font
style/size you wish.
While viewing your code, click on
Tools + Options + Editor Format.
 
T

Tim Ferguson

Setting break-points is more useful, you don't have to alter your code
to get the execution to stop.

Once upon a time you didn't have to remember to remove them either, but
nowadays breakpoints seem to be sticky in between Access sessions.

Or a meringue?

Tim F
 

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

Top