>Sorry, I was wrong. It works the same way. And after I restarted VFP 6 and VFP 7 I see in both that Error Event is firing but it still goes to ShowMessage2 and ShowMessage1. And COUNT FOR ... in commend window gives error in VFP 6 and 7. I looks like we are back to square 1.
I tried Vlad suggestion. But, it doesn't work. If that would work, it means we could minimize the situation as the error event would always fire when there is at least one record. The error event doesn't fire when the table is empty.