thisform.grid1.recordsource="test" thisform.grid1.column3.controlsource="test.code" thisform.grid1.column4.controlsource="test.name"command1 has following codes
select test seek thisform.text1.value && that is 12 if found() thisform.text2.value=name endifgrid1 contains all test.dbf data.