Trouble with "On Error Resume Next"

M

Mike Bennett

I have a line of code that under some circumstances will
error and under others will not. I've added an "On Error
Resume Next" line above this line of code:

On Error Resume Next
str = Screen.ActiveControl.Parent.Parent.Name

However, I still receive a dialog displaying the error and
my code execution is stopped.

This occurs on my system running MS VB 6.3, Version 9969,
VBA: Retail 6.4.8869, Forms3: 11.0.5709. This problem does
not occur on another system running MS VB 6.3, Version
9108, VBA: Retail 6.3.8863, Forms3: 2.01. Notice that the
bug occurs in the newer version, not the older.

I would appreciate help in resolving this issue.

Thank you in advance for your help.
 
M

Mike Bennett

Ok. Problem solved. The system with the "bug" was set
to "Break on All Errors."

Gee - another lesson learned!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top