以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  Filter  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=125875)

--  作者:yetle
--  发布时间:2018/10/9 9:55:00
--  Filter
 If Forms("领料申请").Opened Then
    If tbl1.current IsNot Nothing Then
               If  qs.Checked = True Then   
            
       Tables("领料申请_table3").Filter = "[物供号] = \'" & tbl1.current("物供号") & "\' and  [可申领数] > 0 and [适用款号] like " & txt 
               Else If qs.Checked = False Then
       Tables("领料申请_table3").Filter = "[物供号] = \'" & tbl1.current("物供号") & "\'  and [适用款号] like " & txt 
               End If
\'Tables("领料申请_table3").Filter = "[物供号] = \'" & tbl1.current("物供号") & "\' and [适用款号] = \'" & tbl1.current("款号") & "\' "
Else
       Tables("领料申请_table3").Filter = "[物供号] = 20181001"
    End If
End If

 [可申领数] > 0 没有起作用,等于0的值也出来了
[此贴子已经被作者于2018/10/9 9:56:23编辑过]

--  作者:有点甜
--  发布时间:2018/10/9 9:57:00
--  

1、代码没问题;

 

2、看看是不是你beforeFilter、currentChanged事件有影响的代码。