Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共7 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:ComboBox筛选相关

1楼
youyuweinihao 发表于:2011/8/8 11:33:00

Dim Filter As String
With e.Form.Controls("ComboBox5")
    If .Value IsNot Nothing Then
        Filter = "服务包ID = '" & .Value & "'"
        Filter = " And [客户ID] Is Null"
    End If
End With

 

这个怎么执行两个条件的筛选

代码这样写有错吗

2楼
youyuweinihao 发表于:2011/8/8 11:34:00
执行后出现缺少操作数
3楼
youyuweinihao 发表于:2011/8/8 11:41:00

Dim Filter As String
With e.Form.Controls("ComboBox5")
    If .Value IsNot Nothing Then
       Filter = "[客户ID] Is Null  And 服务包ID = '" & .Tables("服务包明细").current("服务包ID") & "'"
    End If
End With

这样写还是出差

出差为“未找到ComboBox 的共用成员Tables”

4楼
狐狸爸爸 发表于:2011/8/8 11:42:00

Dim Filter As String
With e.Form.Controls("ComboBox5")
    If .Value IsNot Nothing Then
         Filter = "服务包ID = '" & .Value & "'"
         Filter = Filter & " And [客户ID] Is Null"
    End If
End With

5楼
youyuweinihao 发表于:2011/8/8 11:47:00

谢谢狐爸

昨天搞了一个晚上,今天终于解决了

6楼
blackzhu 发表于:2011/8/8 12:38:00
With e.Form.Controls("cmbEmployee")
    If
.Value IsNot Nothing Then
        If
Filter >"" Then
            Filter = Filter &
" And "
       
End If
        Filter = Filter &
"雇员 = '" & .Value & "'"
   
End If
End
With
7楼
youyuweinihao 发表于:2011/8/8 12:39:00
图片点击可在新窗口打开查看
blackzhu谢谢你的帮助
共7 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02344 s, 2 queries.