with thisform requery('lv_loc') .hldcnt = reccount('lv_loc') do case case .hldcnt > 0 .hide_all .refresh()hideall method looks like this
with thisform .txtkn.visible = .f. .txtkn2.visible = .f. .txtK_key.visible = .f. .txt2K_key.visible = .f. .lbl2.visible = .f. .lbl3.visible = .f. .txtkn.value = '' .txtkn2.value = '' .cmdedit.enabled = .f. .cmdadd.enabled = .t. .cmddel.enabled = .f. endwiththanks