如何让自动编号在填充相关数据后再生成 Post By:2017/7/13 21:11:00 [显示全部帖子]
让不重复的目录级档号自动生成,我在表事件DataColChanged中写如下代码
Dim dr As DataRow = e.DataRow Select Case e.DataCol.name Case "全宗号","案卷目录号","案卷号" dr("目录级档号") = format(val(dr("全宗号")),"0000") & "-" & format(val(dr("案卷目录号")),"000") &"-" & format(Val(dr("案卷号")),"0000000") End Select