以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  记录两列的值发生变化的录入人和时间  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=37893)

--  作者:tj-pacer
--  发布时间:2013/7/14 16:42:00
--  记录两列的值发生变化的录入人和时间

根据帮助写了如下代码

If e.Col.Name = "PriceRMB"
       e.Row("Log") = User.Name & " " & Date.Now
End If

 

没问题,显示了“PriceRMB"的录入人和日期,想记录“PriceUSD"的录入人和日期,代码该怎么写?

If e.Col.Name = "PriceRMB"

   ElseIf e.Col. Name = "PriceUSD"
       e.Row("Log") = User.Name & " " & Date.Now
End If

不行,只显示PriceUSD的录入人和日期,priceRMB的不显示了。


--  作者:lsy
--  发布时间:2013/7/14 16:52:00
--  

If e.Col.Name = "PriceRMB" Orelse e.Col.Name = "PriceUSD" Then 

       e.Row("Log") = e.Col.Name & " " & User.Name & " " & Date.Now
End If


--  作者:lsy
--  发布时间:2013/7/14 16:55:00
--  
没例子,看不到真实情况,只能瞎猜。
--  作者:tj-pacer
--  发布时间:2013/7/14 17:25:00
--  

试过了,对了,谢谢!