-- 代码不执行
Dim nms() As String = {"产品型号","第一份_领取人","工序号", "领取日期" ,"返回日期"}
Dim sps() As String = {"\'","\'","\'","#","#"}
Dim bjf() As String = {"=","=","=",">=","<="}
Dim fds() As String = {"产品型号","第一份_领取人","工序号","日期","日期"}
Dim Filter As String
For i As Integer = 0 To nms.Length - 1
If e.Form.Controls(nms(i)).value IsNot Nothing Then
If filter > "" Then
filter = filter & "and"
End If
filter =filter & fds(i) & bjf(i) & sps(i) & e.Form.Controls(nms(i)).value & sps(i)
End If
Next
If e.Form.Controls( "已还").checked = True
If filter > "" Then
filter = filter & "and"
End If
filter=filter & "已还 = true"
End If
If e.Form.Controls( "已还").checked = True
If filter > "" Then
filter = filter & "and"
End If
filter=filter & "未还 =false or 未还 is null"
End If
Tables("工艺卡片发放记录").filter = filter
此主题相关图片如下:1.png
麻烦老师帮忙看一下 代码那个部分写的有问题 为什么不执行呢