Foxtable(狐表)用户栏目专家坐堂 → [求助]


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

主题:[求助]

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


加好友 发短信
等级:超级版主 帖子:106665 积分:542508 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2020/2/6 16:59:00 [只看该作者]

参考:http://www.foxtable.com/webhelp/topics/1058.htm,更改取值的地方即可

Dim Filter As String
With RibbonTabs("功能区1").Groups("功能组1").Items("文本框1")
    If .text > "" Then
        Filter = "车号 = '" & .text & "'"
    End If
End With
With RibbonTabs("功能区1").Groups("功能组1").Items("日期输入框1")
    If .value <> Nothing  Then
        If Filter > "" Then
            Filter = Filter & " And "
        End If
        Filter = Filter & "调度日期 >= #" & .value & "#"
    End If
End With

If Filter > "" Then
    Tables("表A").Filter = Filter
End If

 回到顶部