rt.Cells(13,0).Text = "走访记录1"
rt.Cells(13,1).Text = rw("走访单位1") & IIF(rw("走访记录1") isnot nothing,Format(rw("走访记录1"),"yyyy-MM-dd"),"")
rt.Cells(14,0).Text= "走访记录2"
rt.Cells(14,1).Text = rw("走访单位2") & IIF(rw("走访记录2") isnot nothing,Format(rw("走访记录1"),"yyyy-MM-dd"),"")
rt.Cells(15,0).Text = "走访记录3"
rt.Cells(15,1).Text = rw("走访单位3") & IIF(rw("走访记录3
") isnot nothing,Format(rw("走访记录1"),"yyyy-MM-dd"),"")
rt.Cells(16,0).Text = "走访记录4"
rt.Cells(16,1).Text = rw("走访单位4") & IIF(rw("走访记录4") isnot nothing,Format(rw("走访记录1"),"yyyy-MM-dd"),"")
此主题相关图片如下:希望报表日期空值不显示效果.png