SELECT MySQL... INTO CURSOR TEMP IF _TALLY=0 RETURN ENDIF SCAN This is my scan loop... ENDCAN Rest of code here...So, I always assumed that _TALLY>0, then the following code should not be executed. Well, sometimes, the SCAN is skipped completely. What can cause that?