Foxtable(狐表)用户栏目专家坐堂 → [求助]出现下列错误,找不到原因,请专家指导,


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

主题:[求助]出现下列错误,找不到原因,请专家指导,

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110558 积分:562680 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2024/4/22 9:22:00 [显示全部帖子]

Dim tian As WinForm.ComboBox = e.Form.Controls("天数")
Dim mss As WinForm.ComboBox = e.Form.Controls("面试室")
Dim wlmc As WinForm.ComboBox = e.Form.Controls("首字母")
If tian.value Is Nothing Or mss.value Is Nothing Then
    Tables("号对人_号对人").Filter = "首字母 like '*" & wlmc.Text & "*'"
ElseIf tian.value IsNot Nothing And mss.value Is Nothing Then
    Tables("号对人_号对人").Filter = "天数 = '" & tian.Text & "'And 面试序号 Is null And 首字母 Like '*" & wlmc.Text & "*'"
ElseIf tian.value IsNot Nothing And mss.value IsNot Nothing Then
……

或者
Dim tian As WinForm.ComboBox = e.Form.Controls("天数")
Dim mss As WinForm.ComboBox = e.Form.Controls("面试室")
Dim wlmc As WinForm.ComboBox = e.Form.Controls("首字母")
If tian.Text = "" Or mss.Text = "" Then
    Tables("号对人_号对人").Filter = "首字母 like '*" & wlmc.Text & "*'"
ElseIf tian.Text > "" And mss.Text = "" Then
    Tables("号对人_号对人").Filter = "天数 = '" & tian.Text & "'And 面试序号 Is null And 首字母 Like '*" & wlmc.Text & "*'"
ElseIf tian.Text > "" And mss.Text > "" Then
    Tables("号对人_号对人").Filter = "天数 = '" & tian.Text & "' and 面试室 = '" & mss.Text & "'and 面试序号 is null and 首字母 like '*" & wlmc.Text & "*'"
End If

 回到顶部