![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have this problem that really upsets my users. We are using Access 2007. The Access program was written in Access 2003 with an mdb extension. The tables are in a second linked Access 2003 file with the extension mdb. The two programs are in the same folder on the C: drive. The program has about 20,000 lines of VBA code. I inherited this program, but I have made numerous improvements to it. The problem is that for no apparent reason, when using the program it goes into the VB editor and stops. I tell the users to press F5. It then continues to the end. There seems to be no error in the code. It stops usually at the function or sub statement in the procedures. there is no error message. Does anyone know how I can stop this from happening or what causes it? |
#3
| |||
| |||
|
|
I have this problem that really upsets my users. We are using Access 2007. The Access program was written in Access 2003 with an mdb extension. The tables are in a second linked Access 2003 file with the extension mdb. The two programs are in the same folder on the C: drive. The program has about 20,000 lines of VBA code. I inherited this program, but I have made numerous improvements to it. The problem is that for no apparent reason, when using the program it goes into the VB editor and stops. I tell the users to press F5. It then continues to the end. There seems to be no error in the code. It stops usually at the function or sub statement in the procedures. there is no error message. Does anyone know how I can stop this from happening or what causes it? |
#4
| |||
| |||
|
|
It can happen whenever one leaves the breakpoint but didn't clear it out - though VBE is supposed to be able to automatically clean up all breakpoints at say, shutdown, it always doesn't happen and thus the phantom breakpoint. |
#5
| |||
| |||
|
|
I had this happen recently, and did a decompile/recompile, then cleared all breakpoints and saved the project, and that took care of it. I didn't have to delete the line of code. |
#6
| |||
| |||
|
|
On 8/17/10 2:26 PM, David W. Fenton wrote: I had this happen recently, and did a decompile/recompile, then cleared all breakpoints and saved the project, and that took care of it. I didn't have to delete the line of code. Well, deleting the line and re-pasting it back is sufficient (at least it was for me) to do away with the phantom breakpoint and more importantly, that does not require doing a decompile. As Michael Kaplan has stated on his website, one should not use decompile as knee-jerk reaction but rather as a last resort. Besides it's much quicker that way. |
#7
| |||
| |||
|
|
On 8/17/10 9:21 AM, Bob wrote: I have this problem that really upsets my users. *We are using Access 2007. *The Access program was written in Access 2003 with an mdb extension. *The tables are in a second linked Access 2003 file with the extension mdb. The two programs are in the same folder on the C: drive. The program has about 20,000 lines of VBA code. I inherited this program, but I have made numerous improvements to it. The problem is that for no apparent reason, when using the program it goes into the VB editor and stops. I tell the users to press F5. *It then continues to the end. There seems to be no error in the code. It stops usually at the function or sub statement in the procedures. there is no error message. Does anyone know how I can stop this from happening or what causes it? Are you saying it behaves as if a breakpoint was set but there's no breakpoint? If that is the case, it's easy to fix the phantom breakpoint: On the offending line, cut out the line then delete that line and paste it back in. Compile the code. That phantom breakpoint will then disappear. It's also probably necessary to re-distribute the file to your users so they don't have that problems anymore. It can happen whenever one leaves the breakpoint but didn't clear it out - though VBE is supposed to be able to automatically clean up all breakpoints at say, shutdown, it always doesn't happen and thus the phantom breakpoint. HTH. |
#8
| |||
| |||
|
|
Banana <Ban... (AT) Republic (DOT) com> wrote innews:4C6AE877.7030200 (AT) Republic (DOT) com: It can happen whenever one leaves the breakpoint but didn't clear it out - though VBE is supposed to be able to automatically clean up all breakpoints at say, shutdown, it always doesn't happen and thus the phantom breakpoint. I had this happen recently, and did a decompile/recompile, then cleared all breakpoints and saved the project, and that took care of it. I didn't have to delete the line of code. -- David W. Fenton * * * * * * * * *http://www.dfenton.com/ contact via website only * *http://www.dfenton.com/DFA/ |
#9
| |||
| |||
|
|
HTH, Thanks. That is the problem. I use a lot of breaks when I back engineer the VBA code in the applications. So I will be careful to delete the breaks before I close. Also, the cut and re-paste works well. |
![]() |
| Thread Tools | |
| Display Modes | |
| |