以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  初学,求解  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=84497)

--  作者:ArtSeed
--  发布时间:2016/5/3 19:40:00
--  初学,求解
初学者:员工工资条里出勤天数怎么设置表达式,比如请假3天,在实际出勤里要自动生成27天或者28天
--  作者:大红袍
--  发布时间:2016/5/3 20:42:00
--  

DataColChanged事件

 

If e.DataCol.name = "请假" Then
    e.DataRow("出勤天数") = Date.DaysInMonth(Date.Today.Year, Date.Today.Month) - e.NewValue
End If