todaynew 发表于 2012-4-22 08:07
if isnull(Me.sub1.Form.Filter)=true then
ssql = "select * from tbl0"
else
ssql = "select * from tbl0 where " & Me.sub1.Form.Filter
rst.Open ssql, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
……
msgbox rst!生产数量
……
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) | Powered by Discuz! X3.3 |