If ActiveX is on a form you can use forms Error() event, otherwise TRY...ENDTRY
>
>I am using jmal ocx to receive e-mails and getting error 10061 sometimes.
>
>Evertime this error happens I have to close the form and run it again.
>
>I would like just to press the button when error happens and do not need do close the form.
>
>Which is best way to do it: try or on error command , and how can I do it ?
>
>Do I have to convert the error to VFP error, or can deal directly wich such a error ?
--sb--