vbcode not updating

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

Just recently, when I edit the vb code due to an error stoppage it doesn't
seem to update it after I close. I then have to go and close the forms then
open up the vb editor for it to take.

For instance, if there is an run-time error I'll hit debug and make my
changes. I'll run the program again and the same error will come up and
when I go to debug it, nothing has changed from when I edited the first
time.

Can someone explain what is happening?

TIA
 
I'm not sure you can change the code while the program is still running
(i.e., when the debugger activates). When the program stops would make more
sense....
 
Forms have a property called "AllowDesignChanges". The default is "All
Views". I believe that the behaviour you describe is consistent with the
"Design view only" setting in that, since the form was not in Design view
when you made the change (i.e., it was running), any changes were ignored.
This is usually desirable in distributed apps. You *may* be able to get
around this by manually forcing a save when you edit code in break mode.

HTH,
 
Back
Top