以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  编译错误  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=158585)

--  作者:gaolei
--  发布时间:2020/11/25 15:22:00
--  编译错误
If e.DataCol.name = "房号"
 Dim dt As DataRow
 dt = DataTables("房源基础数据表_销控表").Find(" 房号 = "\' & e.DataRow("房号") &  "\'\'\')
If DT IsNot Nothing
 dt("总回款") = DataTables("收款台账_收银员").ComputeCompute("Sum(收款金额)","[产品] = \'" & e.NewValue & "\'")
End If
End If


显示编译错误应为")"
错误代码dt = DataTables("房源基础数据表_销控表").Find(" 房号 = "\' & e.DataRow("房号") &  "\'\'\'),老师为什么会这样啊

--  作者:有点蓝
--  发布时间:2020/11/25 15:26:00
--  
dt = DataTables("房源基础数据表_销控表").Find(" 房号 = \'" & e.DataRow("房号") &  "\'\'\')
--  作者:gaolei
--  发布时间:2020/11/25 15:33:00
--  
这个和我写的不是一样的吗
图片点击可在新窗口打开查看

--  作者:有点蓝
--  发布时间:2020/11/25 15:38:00
--  
不一样,反了,1楼是先双引号再单引号,位置不一样
--  作者:gaolei
--  发布时间:2020/11/25 16:10:00
--  
哇靠,这也行啊,这个标点符号太难掌握了图片点击可在新窗口打开查看