Is there a method whereby I can set a breakpoint from code? I have a bug in some application initialization code and I need to break before the bug so I can find it.
Thanks,
Bill
Is there a method whereby I can set a breakpoint from code? I have a bug in some application initialization code and I need to break before the bug so I can find it.
Thanks,
Bill
Left click in the gray area to the left of the line of code.
A red dot will appear. The code will stop there.
F8 will single step and F5 will continue.
Debug/Clear Break Points clears them.
Dale
TIP:
ctl-G opens the immediate window. Typing Debug.Print YourVariable will show int in this window.
Dale
I could get what I want if I could just open the database view. I used to be able to do that by holding down the shift key and double-clicking the mdb file. Can that still be done with some other action?
Dale,
Not being clear enough. I need to set a breakpoint from code. That is, a vba statement that will set a breakpoint to itself.
Maybe there's a way to set a breakpoint such that it will remain when the app is closed and then reopened? That's really the problem I'm having.
try Stop.
Dale
That's all I needed. I can now stop and set whatever breakpoints are needed.
Thanks,
Bill
My pleasure.
Dale