Foxtable(狐表)用户栏目专家坐堂 → 数值筛选,如何实现?谢谢


  共有10040人关注过本帖平板打印复制链接

主题:数值筛选,如何实现?谢谢

帅哥哟,离线,有人找我吗?
雨中的泪
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:六尾狐 帖子:1432 积分:9061 威望:0 精华:0 注册:2009/8/19 8:19:00
数值筛选,如何实现?谢谢  发帖心情 Post By:2011/12/30 14:34:00 [只看该作者]

Dim A As String = e.Form.Controls("ComboBox1").Value
Dim B As String = e.Form.Controls("ComboBox2").Value
Dim A1 As Long = CInt(A)
Dim B1 As Long = CInt(B)
If  A Is Nothing OrElse B Is Nothing Then
    MessageBox.Show("请选择起始值和截至值!","提示", MessageBoxButtons.OK ,MessageBoxIcon.Information)
Return
Else
If  B1<A1  Then
MessageBox.Show("截至值不能小于起始值", "提示")
Return
Else
Tables("表A").Filter = "[序号] >= A1  And [序号] <= B1"
End If
End If

 回到顶部
总数 11 1 2 下一页