Usually in release of the form you should close all temporally cursors
In your case cursor dis
if used('dis')
use in dis
endif
It is not required to delete it, becase it is virtual
Look ?file(dbf('dis'))
MVP-2006-2011, PHD in Math and Physics ,
host of
www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.