以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  引用上行的数据  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=81586)

--  作者:kaituozhe
--  发布时间:2016/3/1 17:34:00
--  引用上行的数据

If e.DataCol.name = "日期" Then
    If e.DataRow.Isnull("日期") Then
        e.DataRow("编号分期") = e.DataRow("日期").year & "-" & format(e.DataRow("日期"),"MM")
    Else
        e.DataRow("编号分期") = e.DataRow("编号分期")
    End If
End If

我的想法是当日期列不为空时编号分期为 e.DataRow("日期").year & "-" & format(e.DataRow("日期"),"MM"),日期为空时引用编号分期列上一行的数据,绿色代码该怎么改


--  作者:kaituozhe
--  发布时间:2016/3/1 18:56:00
--  

已解决