Foxtable(狐表)用户栏目专家坐堂 → Combox问题


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

主题:Combox问题

美女呀,离线,留言给我吧!
shxiaoya
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:幼狐 帖子:191 积分:1442 威望:0 精华:2 注册:2008/9/7 21:30:00
  发帖心情 Post By:2009/7/1 17:03:00 [显示全部帖子]

Dim Filter As String
With
e.Form.Controls("combox1")
    If
.Value IsNot Nothing Then
        Filter =
"产品 = '" & .Value & "'"
   
End If
End
With
With
e.Form.Controls("combox2")
    If
.Value IsNot Nothing Then
        If
Filter > "" Then
            Filter = Filter &
" And "
   
    End If
        Filter = Filter &
"客户 = '" & .Value & "'"
   
End If
End
With
With
e.Form.Controls("combox3")
    If
.Value IsNot Nothing Then
        If
Filter >"" Then
            Filter = Filter &
" And "
       
End If
        Filter = Filter &
"雇员 = '" & .Value & "'"
   
End If
End
With
With
e.Form.Controls("combox4")
    If
.Value IsNot Nothing Then
        If
Filter >"" Then
            Filter = Filter &
" And "
       
End If
        Filter = Filter &
"日期 = #" & .Value & "#"
   
End If
End
With
If Filter > "" Then
    Tables
("订单").Filter = Filter
End
If

 回到顶部