我想通过一个sql语句来设定grid1的recordsource,已把recordsourcetpye设为sql statement
text1为查询条件,当按下确定按钮时执行下面语句,我这样写为什么不行?
thisform.grid1.recordsource="select ksh,xm,lqzy from pm where xm="+thisform.text1.value
thisform.grid1.refresh
...全文
567打赏收藏
一个关于grid的recordsource的简单问题
我想通过一个sql语句来设定grid1的recordsource,已把recordsourcetpye设为sql statement text1为查询条件,当按下确定按钮时执行下面语句,我这样写为什么不行? thisform.grid1.recordsource="select ksh,xm,lqzy from pm where xm="+thisform.text1.value thisform.grid1.refresh