*Create a form with an editbox - edit1 and a commandbutton *Command.click cSQL = trim(thisform.edit1.value) select .f. as lSelected, &cSQL into cursor myCursor use dbf("myCursor") in 0 again alias tcSelector use in "mycursor" select tcSelector thisform.addobject("mygrid","grid") with thisform.mygrid .recordsourcetype = 1 .recordsource = "tcSelector" .columncount=fcount("tcSelector") .columns(1).addobject("mycheckbox","checkbox") .columns(1).currentcontrol = "mycheckbox" .columns(1).mycheckbox.caption = "" .columns(1).header1.caption = "?" .columns(1).width = 20 .columns(1).sparse = .f. .left = 1 .top = 1 .width = thisform.width - 2 .visible = .t. endwithNow the idea I use is like this, user could browse and select in this grid and in lostfocus or via a command button you could operate on them.