Set a breakpoint does not pause a program

mhong

Registered User.
Local time
Today, 18:13
Joined
Sep 28, 2001
Messages
13
In my program, I try to set breakpoint at my command button but when I click on the button, it did not pause at the line I set the breakpoint. Then I close my program and open Northwind database and set some other breakpoint, this time it works. Anyone please tell me what wrong with my program.
 
I would guess that the line where you set your breakpoint is never being reached. Try setting the breakpoint earlier and stepping through your code line by line. You will then be able to see what your code is doing and why your line of code is never reached.
 
Thank you for your reply, cpod. I have put the breakpoint at the FIRST LINE of my command button. Other breakpoint at the form activate event, on open form event. But I still doesn't work. One of my commmand button have only 2 lines:

Private Sub cmdView_Click()
DoCmd.Close
DoCmd.OpenForm "frmViewPartInfo"
End Sub

But no matter where I put the breakpoint, the program still run as like I never put a breakpoint. Please help me.
 
The only other thing that comes to mind is, did you change the name of your command button after your wrote the code? - Does your button still have the name cmdView?
 
No, I didn't change the name. It still close a form and open the second form. I am not able to get a breakpoint stop not in this sub but on every other sub in the whole application. I try delete some code and then go to property sheet to write new other simple code and run it. But it still doesn't stop at the breakpoint I set. Insert the STOP command doesn't work also. Please help.
 
Another try I did is create a new mdb file and import all the code from the old mdb to the new one. The result still the same.
 
I don't know. If you want to sent me a copy of your db I could play with it a bit.

c_pod@hotmail.com
 
I'm @ work. I'm unable to use hotmail. They lock it. I send you my copy when I 'm home.
Thank you for your help.
 

Users who are viewing this thread

Back
Top Bottom