On Error GoTo errHandler for (Inet1.OpenURL) not function,request time out 
Author Message
 On Error GoTo errHandler for (Inet1.OpenURL) not function,request time out

Hi,

add a statement

    Exit Sub

or something similar before the label errHandler.

Hoping it may help,
Vanderghast, Access MVP

Quote:

> I am using VB to build the following code,but the error handling seems not

functioning, when request time out, it should go to error handler, but the
program still come out the error message(request timed out), after you
resume a while, it will go to normal.
Quote:

> the other problem: when error come out, or the last page can't be display,

then next few pages will display empty, after few seconds, it will return to
normal.
Quote:

> it seems the Inet1 still processing

> ............................................

> On Error GoTo errHandler
>     strhtml = Inet1.OpenURL(strurl, icString)
>     Text1.Text = strhtml

> errHandler:
> If Err.Description = "Request timed out" Then
>                 bookMark = objQU.bookMark
>                 objQU.Fields(2) = "Request Timed Out"
>                 objQU.Update

>                 Inet1.Cancel
>                 Err.Clear
>                 Exit For
> End If





Mon, 08 Mar 2004 05:17:25 GMT
 
 [ 1 post ] 

 Relevant Pages 

1. On Error GoTo errHandler for (Inet1.OpenURL) not function,request time out

2. On Error GoTo errHandler for (Inet1.OpenURL) not function,request time out

3. Replication Error: Driver does not support requested function

4. request new feature: auto recompile of function when oid not found

5. Error 1222 : Lock request time out period exceeded in Enterprise Manager

6. Lock request time period exceeded error

7. Error says CStr not a Function name

8. Function Not Supported Error in ComnEvnt.DLL

9. Function not supported error in ComnEvnt.DLL

10. System Functions not functioning

11. Run-time error '713': not solved by Q248055

12. Function cachable is not anymore inside a function !!!!


 
Powered by phpBB® Forum Software