以文本方式查看主题 - Foxtable(狐表) (http://www.foxtable.com/bbs/index.asp) -- 专家坐堂 (http://www.foxtable.com/bbs/list.asp?boardid=2) ---- parent字符筛选异常 (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=173897) |
-- 作者:z769036165 -- 发布时间:2021/12/21 16:44:00 -- parent字符筛选异常 Tables("菜单_table1").Filter = "Menu = \'"& e.Node.Text & "\' and parent is null" 发现用parent 这个列名做数据筛选条件,就报错 查找表达式中的语法错误: 关键字“Parent”之后应当是具有可能的关系限定符的单个列参数: Parent[(<relation_name>)].<column_name>。 System.Data.SyntaxErrorException: 查找表达式中的语法错误: 关键字“Parent”之后应当是具有可能的关系限定符的单个列参数: Parent[(<relation_name>)].<column_name>。 在 System.Data.ExpressionParser.Parse() 在 System.Data.DataExpression..ctor(DataTable table, String expression, Type type) 在 System.Data.DataView.set_RowFilter(String value) 在 System.Data.DataView.System.ComponentModel.IBindingListView.set_Filter(String value) 在 System.Windows.Forms.BindingSource.set_InnerListFilter(String value) 在 Foxtable.oo 0O O.set_Filter(String value) |
-- 作者:有点蓝 -- 发布时间:2021/12/21 17:10:00 -- 加上中括号 |