... oBrw:aSelected, nAt, .t. ) endif oBrw:Refresh() return nil It seem run ok if I select two or three records and deselect one, the menu in the buttonbar remains unchanged because I added an if control IiF(LEN(oBrw:aSelected)==0,Btnbar(1,.....) thanks