以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  窗口录入身份证号到表A的身份证号列,怎样提醒位数不够或超出?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=129909)

--  作者:comnets
--  发布时间:2019/1/8 16:12:00
--  窗口录入身份证号到表A的身份证号列,怎样提醒位数不够或超出?
是在窗口控件设置吗?怎样设置?
[此贴子已经被作者于2019/1/8 16:16:29编辑过]

--  作者:有点甜
--  发布时间:2019/1/8 16:37:00
--  

datacolchanging事件

 

If e.datacol.name = "身份证号" Then

    If e.newvalue <> nothing andalso e.newvalue.length <> 18 then

         msgbox("错误")

         e.cancel = true

    End If

End If