Lookup Setting cause and error : Executing SQL directly; no cursor

I have a Form with a Capture Link from a field ‘kode’

When I enable the “Use lookup to display the field description.” , the sql :
SELECT nama
FROM dbo.stock
WHERE KODE = ‘{kode}’
ORDER BY nama

it cause an error :
[Microsoft][SQL Server Native Client 11.0][SQL Server]Executing SQL directly; no cursor.

If I disable the lookup setting, it run well.