以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  老师这个删除代码提示错误,哪里的错??  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=166147)

--  作者:hbfnmxb
--  发布时间:2021/5/20 17:53:00
--  老师这个删除代码提示错误,哪里的错??
ComboBox1选择年度,进行删除,提示错误,老师看一下,问题出在哪里?
Dim Filter As String
 With e.Form.Controls("ComboBox1")
    If .Value IsNot Nothing Then
        Filter = "录取年度 = \'" & .Value & "\'"
    End If
End With
DataTables("一分一档").DeleteFor("录取年度 in (\'" & Filter & "\')")

--  作者:有点蓝
--  发布时间:2021/5/20 20:13:00
--  
if Filter  > "" then
DataTables("一分一档").DeleteFor(Filter )
end if