string Old, New
Old = 'SELECT table.column FROM tablename' &
+ 'WHERE 条件1'
New = 'SELECT table.column FROM tablename' &
+ 'WHERE 条件2
IF dw_emp.Retrieve( ) = 0 THEN
dw_xxx.SetSQLSelect(New)
dw_xxx.Retrieve()
END IF
yz、viewsea:Use SetSQLSelect only if the data source for the DataWindow object is a SQL SELECT statement without retrieval arguments,真的没有用,我试过了。
永远的中华英雄男儿:我的数据窗口有retrieve的参数,只要dw_1.retrieve(),你不给他参数,他就自己弹出来要参数。烦不烦嘛。
我的意思就是把这个要参数的框框屏逼了。