这是我编的一个实例的一段:
thisform.grid1.recordsource=''
thisform.grid1.column1.controlsource=""
thisform.grid1.column2.controlsource=""
thisform.grid1.column3.controlsource=""
thisform.grid1.column4.controlsource=""
thisform.grid1.column5.controlsource=""
thisform.grid1.column6.controlsource=""
thisform.grid1.column7.controlsource=""
delete
pack
thisform.grid1.recordsource='inkcspss'
thisform.grid1.column1.controlsource="inkcspss.spbm"
thisform.grid1.column2.controlsource="inkcspss.spmingcheng"
thisform.grid1.column3.controlsource="inkcspss.danwei"
thisform.grid1.column4.controlsource="inkcspss.danjia"
thisform.grid1.column5.controlsource="inkcspss.guige"
thisform.grid1.column6.controlsource="inkcspss.chandi"
thisform.grid1.column7.controlsource="inkcspss.leibie"