以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 通配符 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=158088) |
-- 作者:zhuxinhui -- 发布时间:2020/11/7 13:59:00 -- 通配符 想把这个条件改为带通配符的条件: dr("累计借方金额") = DataTables("凭证明细").SQLCompute("sum(借方金额)","[科目编码] =\'" & s.Rows(i)("科目编码") & "\'And 编制日期 >= #"& star &"# And 编制日期 <= #" & e.Form.Controls("startdate").value & "#")[科目编码] =\'" & s.Rows(i)("科目编码") & "\' 想把这个条件改为带通配符的条件,如何在\'" & s.Rows(i)("科目编码") & "\'后加下通配符“%”,变成[科目编码] like \'" & s.Rows(i)("科目编码") & "\' 后加通配符的代码?
|
-- 作者:有点蓝 -- 发布时间:2020/11/7 14:02:00 -- [科目编码] like \'" & s.Rows(i)("科目编码") & "%\' |
-- 作者:zhuxinhui -- 发布时间:2020/11/7 15:28:00 -- 多谢, 三天终于搞定个汇总表
|