We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

MS Access 2010: Breakpoints not hit when debugging

Medium Priority
1,048 Views
Last Modified: 2012-08-13
For some reason, all of a sudden, when I am debugging code in a module, the execution no longer stops on my breakpoints, it just runs to the end.

I've compacted/repaired, with no results. I don't get any compile errors - execution just blows by any breaks....

Any suggestions would be greatly appreciated.
Comment
Watch Question

Commented:
The only reason I know that could happen is because the code is not running where your breaks are. For instance if you have code like:

If txtTest <> '' then
   do something here with a break
end if

if txtTest is null and not '' then it will not go to that break.
You have any code you want to show?
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
CERTIFIED EXPERT
Top Expert 2007

Commented:
Have you tried rebooting your system (seriously) ?

mx
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
CERTIFIED EXPERT
Top Expert 2007

Commented:
Also, try inserting a MsgBox in a couple of places where you want to Break ... and see if those get triggered ?

mx

Author

Commented:
I have tested another db and it works properly, using the same function - so it appears to be a problem with the particular db - and no, I have not re-booted my system. If all else fails, I will create a new db and import the objects. But, I'd really like to find out why this is happening.

I tested a simple process by inserting a break point and the function returned the expected result, it just failed to break on any breakpoint....
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
CERTIFIED EXPERT
Top Expert 2007

Commented:
1) Try the message box suggestion

2) Reboot ... VBA *does* get stuck sometimes ... I've seen this before.

mx

Author

Commented:
Is the "stuck" situation general (i.e. applies to all db's), or can it be just for a particular db?
Jeffrey CoachmanMIS Liason
CERTIFIED EXPERT
Most Valuable Expert 2012

Commented:
What are your error trapping options set to in your VBE?
Try: Break on  All Errors
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Application Developer
CERTIFIED EXPERT
Top Expert 2007

Commented:
"Is the "stuck" situation general (i.e. applies to all db's), or can it be just for a particular db?"
Sorry ... missed this before.
I guess either way.

mx

Author

Commented:
Thanks for all suggestions....

Author

Commented:
This the quickest way to fix the issue and move on.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.