>I have the strangest thing happening (again). I have set deleted ON in my form, and a grid which its data source is a view. On the lostfocus method I have code that deletes the current field if empty, so, when I press ENTER, it fires the code, deletes the record and takes it out of sight(set deleted working), but, when I use the arrow UP key, it fires the code, deletes the record but STILL I can see it on the grid (set deleted not working), inclusive, the delete mark shows to the left of the grid. What's going on? Why this type of behaviour on something so basic? I've used REFRESH and everything you can think of, but nada.
You are sitting on the record, and therefore you see it. You can actually GO 1234, and you'll see it, even if it's deleted. It's just that the commands which affect _tally will skip it (like running a report, Count, Sum, skip etc).
The solution for your case could be
delete
locate rest
if eof()
go bott
endif
[fire any refresh now]
This way you move off the deleted record, and the refresh will show the next available record, or the new last record (if you deleted the previously last one).