Solved

breakpoints appear to have remained in vba

Posted on 2014-09-03
4
169 Views
Last Modified: 2014-09-03
I was testing some code and added breakpoints. I removed the breakpoints but its still stopping in the same places. maybe i have done something silly that i cannot spot?

I have a screen shot here where it stopped.

I tried saving and repair options but it still halts and waits.
ee-breakpoints.PNG
0
Comment
Question by:PeterBaileyUk
  • 2
  • 2
4 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 40300986
No, it's an age old problem in VBA ("Phantom Break points").

Open a code module, add a line of code (like a STOP).  Save and compile.   Then do a "Remove all break points", remove the stop, compile and save.  That usually gets rid of the problem.

Jim.
0
 
LVL 57
ID: 40300994
You can also cut and paste all the code in a module and/or do a /decompile.

Anything that forces VBA to change the state of the module and be forced to do a recompile.

Jim.
0
 

Author Comment

by:PeterBaileyUk
ID: 40301026
Success, well i never had that before.
0
 

Author Closing Comment

by:PeterBaileyUk
ID: 40301027
thank you.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now