以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 我晕了,这个表达式怎么不能连接起来 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=41579) |
-- 作者:jianjingmaoyi -- 发布时间:2013/10/22 22:24:00 -- 我晕了,这个表达式怎么不能连接起来 Dim dt As DataTable = Tables(e.form.Name & "_Table1").DataTable With e.Form.Controls("报表名称") With e.Form.Controls("ComboBox1")
第一段的模糊筛选和第二段的报表名称 怎么连不起来了 我晕死了 |
-- 作者:有点甜 -- 发布时间:2013/10/22 22:31:00 -- 试试用 With e.Form.Controls("报表名称")
If .Text > "" Then If Filter > "" Then Filter = Filter & " And " End If Filter = "报表名称 = \'" & .Value & "\'" End If End With |
-- 作者:jianjingmaoyi -- 发布时间:2013/10/22 22:33:00 -- 一样的呀 我在报表控件 输入数据 就和上面断开了 奇了怪了 |
-- 作者:有点甜 -- 发布时间:2013/10/22 22:36:00 -- 注释掉,一部分一部分的调试呗,用msgbox弹出对应的值看看。 |
-- 作者:jianjingmaoyi -- 发布时间:2013/10/22 22:39:00 -- 我改了顺序 |
-- 作者:jianjingmaoyi -- 发布时间:2013/10/22 23:14:00 -- 奇怪 用mgsbox 测试 也是在那边断开了 |
-- 作者:有点甜 -- 发布时间:2013/10/22 23:28:00 -- 例子, ![]() |
-- 作者:jianjingmaoyi -- 发布时间:2013/10/22 23:45:00 -- 搞定 |