>For some reason when I delete all the records in the grid, the last record will stay on the grid or reappear later. Once I click on the grid, the record vanishes. I looked on Microsoft's site but they didn't mention any kind of bug that fit this behavior. Anybody know a dependable workaround for this problem.
>Alex
Alex,
I remember running into this one too. As I recall, it was also the case that if you deleted the record which appeared as the first row in a grid, the deleted record still showed in the grid. One way around this behaviro is to move the record pointer off the deleted record (and back, if you want to), then refresh the form or at least refresh the grid. The code might look something like this:
with thisform
.lockscreen = TRUE
local lnRecno
lnRecno = recno()
if eof()
skip -1
else
skip
endif
go lnRecno
.lockscreen = FALSE
.refresh()
endwith
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.