Foxtable(狐表)用户栏目专家坐堂 → [求助]筛选结果条数


  共有1467人关注过本帖树形打印复制链接

主题:[求助]筛选结果条数

帅哥哟,离线,有人找我吗?
一只田鸡
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:婴狐 帖子:33 积分:379 威望:0 精华:0 注册:2018/8/28 16:39:00
[求助]筛选结果条数  发帖心情 Post By:2018/12/14 10:49:00 [只看该作者]

设计了一个筛选按钮,可以使用,现在想要在显示一共筛选出多少条数据,需要写什么代码,或者参考哪一页帮助文件呀,
请前辈们指点。
Dim filter As String
With e.Form.Controls("num1")
    If .Value <> Nothing Then
        filter &= " (开奖号码_A='" & .Value & "')"
    End If
End With
With e.Form.Controls("num2")
    If .value <> Nothing Then
        filter &= " and (开奖号码_B='" & .Value & "')"
    End If
End With
With e.Form.Controls("num3")
    If .value <> Nothing Then
        filter &= " and (开奖号码_C='" & .Value & "')" 
    End If
End With
MessageBox.show(filter)
If e.Form.Controls("num1").Value = "" Then
    MessageBox.show("第一个数为空,无法筛选.","提示")
Else
    Tables("information").Filter = Filter
    MessageBox.show("请查看筛选结果.","提示")
End If

 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/12/14 12:51:00 [只看该作者]

    Tables("information").Filter = Filter
    MessageBox.show("请查看筛选结果.","提示")

    msgbox(Tables("information").Rows.Count)


 回到顶部