I have a similar form with a grid and a delete command button. In the click event I have:
mval=messagebox('Are you sure?',36,'Delete Record Question')
if mval = 6
delete
endif
thisform.grid1.refresh
thisform.grid1.setfocus
Set deleted is on. I think the thisform.grid1.refresh (your grid name may vary) is what you are missing??????? It seems to work for me.
Hope this helps!
Tom
Tom Gahagan
Alliance
Computer Solutions
"Music, like sex, is much too important to be left to professionals."
Robert Shaw