以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- select 使用 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=145852) |
-- 作者:kaituozhe -- 发布时间:2020/2/9 16:06:00 -- select 使用 Dim filter7 As String = "会计科目编码 = \'" & e.DataRow("会计科目编码") & "\'and 账面会计科目编码 = \'" & e.DataRow("账面会计科目编码") & "\'and 日期 >= \'" & e.DataRow("开始日期") & "\'and 日期 <= \'" & e.DataRow("截止日期") & "\'and 公司名称 = \'" & e.DataRow("公司名称") & "\'"
执行上述代码 ,实际执行结果为:1-2-5-t-6-3-5-t-6-4-5-t-6,为什么不是1-2-3-4-5-t-6,这是什么原因?
|
-- 作者:有点蓝 -- 发布时间:2020/2/9 22:43:00 -- 正常啊,任何数据列值改变都会触发datacolchanged事件,msgbox(2)给"科目编号"赋值,同时会触发datacolchanged事件,事件判断没有针对 case "科目编号"的代码,就接着执行End Select之后的代码,完毕后回到之前的事件,继续执行msgbox(3) |