tSQL = "select a.AssetNo , a.Model, m.ProductCode " + sCR;
tSQL = tSQL + "from Assets a " + sCR;
tSQL = tSQL + "inner join Models m on a.Model = m.Model " + sCR;
tSQL = tSQL + "where a.AssetNo IN (" + sCR;
for i = 1 to 200 do
if i = 200 then
tSQL = tSQL + str(AssetNo[i]);
else
tSQL = tSQL + str(AssetNo[i]) + ", ";
end if;
end for;
tSQL = tSQL + ") and a.AssetNo <> 0" + sCR;
tSQL = tSQL + "ORDER BY m.ProductCode DESC, a.Model ASC, a.AssetNo ASC";
status = SQL_Execute(SQL_connection, tSQL);
Till here it works fine.
But when it reaches code
status = SQL_Fetchnext(SQL_connection, tSQL);
It give return code 18?
I am not able to find what error code 18 means.
Can anyone hepl?
*This post is locked for comments
I have the same question (0)