Strange Error Message 
Author Message
 Strange Error Message

Hi all,

Has anyone ever gotten an Error Message like this:

Err.Number = 0 and there is no error message at all.  I get it sometimes
when I loop through a recordset created in VBA.  The looping works as long
as I Resume after the error occurs.

Any help or insight would be appreciated.

Thanks in advance,
Chris



Sat, 13 Jul 2002 03:00:00 GMT  
 Strange Error Message
Err.Number = 0 means 'no error'. It looks like you do some error handling in
code, but you pop a message box even if no error occurs.

Hth
--
Radu Lascae
please reply to messages in the group


Quote:
> Hi all,

> Has anyone ever gotten an Error Message like this:

> Err.Number = 0 and there is no error message at all.  I get it sometimes
> when I loop through a recordset created in VBA.  The looping works as long
> as I Resume after the error occurs.

> Any help or insight would be appreciated.

> Thanks in advance,
> Chris



Sat, 13 Jul 2002 03:00:00 GMT  
 Strange Error Message
Thanks very much!


Quote:
> Err.Number = 0 means 'no error'. It looks like you do some error handling
in
> code, but you pop a message box even if no error occurs.

> Hth
> --
> Radu Lascae
> please reply to messages in the group



> > Hi all,

> > Has anyone ever gotten an Error Message like this:

> > Err.Number = 0 and there is no error message at all.  I get it sometimes
> > when I loop through a recordset created in VBA.  The looping works as
long
> > as I Resume after the error occurs.

> > Any help or insight would be appreciated.

> > Thanks in advance,
> > Chris



Sat, 13 Jul 2002 03:00:00 GMT  
 Strange Error Message
You probably have an Error Handler set up wrongly. There probably isn't an
exit sub/function line before the error handler, so the code goes happily on
through the error handler, even if there is no error.

It should be something like

fExit:
'    Close recordsets etc
    Exit Function
E_Handle:
    MsgBox Err.Number
    Goto fExit
End Function

--

HTH

Jon

Quote:
> Hi all,

> Has anyone ever gotten an Error Message like this:

> Err.Number = 0 and there is no error message at all.  I get it sometimes
> when I loop through a recordset created in VBA.  The looping works as long
> as I Resume after the error occurs.

> Any help or insight would be appreciated.

> Thanks in advance,
> Chris



Sat, 13 Jul 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Very strange error message

2. strange error-message (only in german avialable; sorry)

3. strange error message:

4. Strange Error Message

5. Strange error message - Permission Denied???

6. VERY Strange error message!

7. Strange error message

8. Strange error message

9. Strange error message - help required

10. A strange error message...

11. Strange Error Message File ;" Already In Use

12. strange error message

 

 
Powered by phpBB® Forum Software