5107 AE_INVALID_SQLCURSOR_HANDLE

Advantage Error Guide

Advantage does not have a cursor open with the specified handle.