=AERROR(laError) ? ALLTRIM( laError[1,3] )>Hi!
>nHandle = Sqlconnect("DNSname") >cSQL = [ Select * from DatabaseName!TableName WHERE fieldname = ] + [.T.] >nResult = Sqlexec(nHandle, cSQL, "cur_tablename")>with this code, nResult returns a negative value and does not produce the cursor I wanted to create base from the query.