Results 1 to 4 of 4
  1. #1
    Glenn_Suggs is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    72

    Cool Disabled Breakpoint continues to stop code

    Hello everyone... I had to put a breakpoint into my VBA code in one of my apps to debug a problem I was having and inspect the variable values. All was well until I finished the debugging process and tried to eliminate my breakpoints. However, the next time I ran the application, the code stopped as if one of the breakpoints was still active. I closed the application and reopened it (even rebooted the computer) and the code continues to stop in the same spot in the program. I'm wondering if anyone else has ever seen this happen and what I should do about it? The only thing I can think of to do is to create a new empty Access database and import all the obects from the old one. I'm thinking the database must be corrupt and this is all I know to try. It's kind of a large database and that could take some time. Any ideas? Thanks in advance... Glenn

  2. #2
    SteveH2508 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Sep 2010
    Location
    Chelsea, London, England
    Posts
    117
    Make a small change to your VBA code (e.g. add then remove a space or something).

    Compile your code. That should fix it.

    If not, then google 'de-compile access'.

  3. #3
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Yes. I still get this too. And since I cant compile (other errors that are irrelevant) , it comes and goes.

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    And since I cant compile (other errors that are irrelevant)
    Errors are not "irrelevant"!! The errors need to be fixed, then compile and repair. You are flirting with disaster.
    If the really are "irrelevant" (ie test code), comment out the code block. Then Compile and Repair.

    Also, you are probably editing the code while it is executing (single step mode) ....NOT a good thing to do.
    I know - I almost lost my database because the VBA project corrupted.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 20
    Last Post: 07-07-2014, 03:04 PM
  2. VBA code stop adding value when textbox exceed 50
    By Georgi in forum Programming
    Replies: 7
    Last Post: 09-27-2013, 02:32 PM
  3. If New Record Stop Code Exit Sub
    By burrina in forum Forms
    Replies: 1
    Last Post: 12-19-2012, 01:02 PM
  4. Phantom Breakpoint
    By Paul H in forum Programming
    Replies: 1
    Last Post: 10-03-2012, 01:30 PM
  5. Navigation Buttons Stop My Code
    By millerdav99 in forum Programming
    Replies: 6
    Last Post: 03-18-2011, 11:13 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums