以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- [求助] dtr("内容") = dr("日期").Date & " " & dr("经办人") & " 已付:" & dr("已付金额") & iif(dr.current.isnull("提成"),""," 提成:" & dr("提成")) 后边iif(......)写的不对,请指正 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=72602) |
-- 作者:ytzn -- 发布时间:2015/8/2 20:04:00 -- [求助] dtr("内容") = dr("日期").Date & " " & dr("经办人") & " 已付:" & dr("已付金额") & iif(dr.current.isnull("提成"),""," 提成:" & dr("提成")) 后边iif(......)写的不对,请指正 For Each dr As DataRow In DataTables("订单").DataRows Dim dtr As DataRow = DataTables(e.Form.name & "_Table1").AddNew() dtr("内容") = dr("日期").Date & " " & dr("经办人") & " 已付:" & dr("已付金额") & iif(dr.current.isnull("提成"),""," 提成:" & dr("提成")) Next 十分感谢!!!
|
-- 作者:大红袍 -- 发布时间:2015/8/2 20:10:00 -- For Each dr As DataRow In DataTables("订单").DataRows Dim dtr As Row = e.Form.Controls("Table1").Table.AddNew() dtr("内容") = dr("日期").Date & " " & dr("经办人") & " 已付:" & dr("已付金额") & iif(dr.isnull("提成"),""," 提成:" & dr("提成")) Next |
-- 作者:有点蓝 -- 发布时间:2015/8/2 20:11:00 -- 把Current去掉 iif(dr.isnull("提成"),""," 提成:" & dr("提成")
|
-- 作者:ytzn -- 发布时间:2015/8/2 20:14:00 -- 多谢!!! |