set multilocks on =cursorsetprop("buffering",5,"leave") =tableupdate(.t.) set multilocks on =cursorsetprop("buffering",1,"leave") thisform.delete() set multilocks on =cursorsetprop("buffering",5,"leave") =tableupdate(.t.) thisform.refresh() if eof() thisform.text1.visible=.f. thisform.txtdesc.visible=.f. endifthisform.delete have this code,
if .not. eof() nanswer=messagebox("Are you sure you want to delete?",292,"Program Message") do case case nanswer=6 dele gfile=juststem(dbf()) use in &gfile use &gfile in 0 alias gfile exclusive select gfile pack use use &gfile in 0 shared messagebox("Record deleted!",64,"Program Message") endcase else messagebox("No record to delete!",64,"Program Message") endifthe delete works fine too except that it seems not to refresh text1, which should display the firstname and lastname of the employee.