以下是引用yuanbin在2008-10-11 10:45:00的发言: IF e.DataCol.Name = "日期" Then e.datarow("ID")=CurrentTable.Compute("max(ID)","[日期] =#" & DATE.TODAY & "#")+1 end if
修改日期就不行了 IF e.DataCol.Name = "日期" Then e.datarow("ID")=CurrentTable.Compute("count(日期)","[日期] =#" & e.datarow("日期") & "#") end if