>>>>>This do not work. lnResult=-1
>>>>>Set Textmerge On
>>>>>TEXT To lcSql Noshow
>>>>>Select .....
>>>>>ENDTEXT
>>>>>lnResult = SQLExec(gnConnHandle, lcSql,"anyfile")
>>>>>=Messagebox(lnResult)
>>>>>= SQLDisconnect(gnConnHandle)
>>>>>
>>>>>Where am i wrong?
>>>>
>>>>You tell me. What ODBC error AERROR() reports?
>>>
>>>How to trap AERROR()?
>>
>>Did you check the help file? The AERROR() is VFP function that returns detailed info about ODBC, OLE and some other errors in an array.
>
>Sorry Sergey, this is not my job.
Huh?
____________________________________
Don't Tread on Me
Overthrow the federal government NOW!
____________________________________