Foxtable(狐表)用户栏目专家坐堂 → 时段统计问题


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

主题:时段统计问题

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


加好友 发短信
等级:超级版主 帖子:106209 积分:540168 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/4/23 16:50:00 [只看该作者]

日期单独拿出来处理

dim f2 as string
Filter = "分类 = '" & e.Form.Controls("ComboBox1").Value & "'"
   With e.Form.Controls("StartDate")
        If .Value IsNot Nothing Then
            f2  =  "缴费_月租_起计日期 <= #" & .Value & "# and 缴费_月租_止计日期 >=#" & .Value & "#"
        End If
    End With
    With e.Form.Controls("EndDate")
        If .Value IsNot Nothing Then
            If f2  > "" Then
                f2  = Filter & " or "
            End If
            f2  = f2  & "缴费_月租_起计日期 <= #" & .Value & "# and 缴费_月租_止计日期 >= #" & .Value & "#"
        End If
    End With
if F2 > "" then
            If Filter > "" Then
                Filter = Filter & " And "
            End If
Filter = Filter & " (" & F2 & ") "
end if
    With e.Form.Controls("DropBox1")
        If .Value IsNot Nothing Then
            If Filter > "" Then
                Filter = Filter & " And "
            End If
            Filter = Filter & "车牌号码 = '" & .Value & "'"
        End If
    End With

 回到顶部
总数 123 1 2 3 4 5 6 7 8 9 10 下一页 ..13