SELECT * FROM components INTO CURSOR MyComponents ; WHERE KitID==lcPartNo llIskit = 0<RECCOUNT("MyComponents")This is in a loop that is executed a few thousand times. On rare occasions, the second line fails with "alias not found" ... and when this occurs, ALIAS() is empty! That's right, I get a cursor with NO alias.