Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem when debugging a program

Status
Not open for further replies.

ycim

Programmer
Feb 9, 2005
95
CA
interesting....

When setting on the debug to break, all controls on my page come up with an error message (in debug mode)
Run time error 2467 - The expression you have entered refers to an object that is closed or doesn't exist

I would love to say that it is easy. But all I am doing is putting on a "break" in the code so that I can step through it. The form is still open. No issues that I can see of. Only this 1 form is doing it. All other forms behave normally.

I have reimported the controls and code to a new form, cause with Access 2000, that seemed to work sometimes. But nothing.

Any suggestions? Anyone ever see this before?

 
Take care to not reinitialize the project when in debug mode.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Can you elaborate? The break is on a line literally this simple

Me.txtPrice1 = Me.txtPrice1 * tmpConv

It tells me that txtprice1 is the error.

One other thing which is of interest. If I let the code run, then there is no error, and all is good. This only happens if I drop into debug mode.
 
And how do you drop into debug mode ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Just by putting a break on the line in the VBA modules.

I think there is more to this situation. I was looking, and went out of my database. When I went back in I was given a message that the VBA modules are corrupt. Ironically, now, none of my code for any other forms remains!

I am restoring from my latest backup copy and trying again.

Stay tuned....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top