>Hi Sergey,
>
>>What line of code you posted gives this error? How do you connect to SQL >Server (Views, SPT, ActiveX Data Objects)?
>
>I'm connecting with ADO, but the code works if i put it into the Form Load Event. If i move it to a prg or to my base class form load event it doesn't work, i think i can't validate to sql server
>
>Joao Batista
Sorry, but I've to repeat my question. What line of code you posted gives the error?
In addition you can analyze Errors collection of the ADO connection object to find out detailed info about errors. Something like
lcErrMsg = ""
FOR Each loErr IN oCon.Errors
lcErrMsg = lcErrMsg + loErr.Description + ;
" (" + Transform(loErr.Number) + ")" + ";;"
ENDFOR
? lcErrMsg
--sb--