odbc for nf 2.60 E

hi there we make an sql query to retrieve data from a navision database. odbc config is ok. we test the query under sql and it shows a lot of records. when we try to run this query in our proccess, we get a -1 (minus 1, negative 1…) as result every time we launch it. the SELECT query is ok but the result is assigned to a cursor. do u think the problem could be the cursor? zanx & regards