.eof ti riporta la fine del file. se fai una select semplice, .eof ti dice che non hai record. non dovresti quindi avere problemi. casomai riposta.