Foxtable(狐表)用户栏目专家坐堂 → 当日查询


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

主题:当日查询

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


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2016/8/21 13:39:00 [显示全部帖子]

e.form.Controls("DateTimePicker1").Value =Date.Today()
e.form.Controls("combobox1").Value = "湖南公司"
Dim Filter As String = "1=1"
With e.Form.Controls("combobox1")
    If .Value IsNot Nothing Then
        Filter &= " and 销售单位 = '" & .Value & "'"
    End If
End With
With e.Form.Controls("datetimepicker1")
    If .Value IsNot Nothing Then
        Filter &= " and 销售日期 = '" & .Value & "'"   
    End If
End With
If Filter > "" Then
    Tables("销售单").Filter = Filter
End If

 回到顶部