>Do I have to write a separate function or is there an existing command (something like SET DELETES OFF) that I can use in order to count ONLY the entries that are not deleted?
There is such a cammand, it is called SET DELETED ON/OFF...
However, a file with deleted records will still have the same RECCOUNT(). One answer would be to COUNT FOR NOT DELETED().
Larry Collins
TheProgrammerGuy.com