一个关于数据库设计的问题

jsxxxly 2002-05-15 08:50:01
我想让Access中某个Text类型字段的值是长度为6的数字,该字段的有效性文本应该怎样写?
...全文
38 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
dyj_163_com 2002-05-15
  • 打赏
  • 举报
回复
up
bitsoft 2002-05-15
  • 打赏
  • 举报
回复
Private Sub Text2_Validate(Cancel As Boolean)
If Text2.Text <> "" And Not IsNull(Text2.Text) Then
If Not (IsNumeric(Text2.Text) And Len(Text2.Text) = 6) Then
MsgBox "wrong"
End If
End If
End Sub
ctianqi 2002-05-15
  • 打赏
  • 举报
回复
dim rs as recordset
if isnumeric(rs.filter(0)) then
if len(rs.filter) then
...........
end if
endif

1,216

社区成员

发帖
与我相关
我的任务
社区描述
VB 数据库(包含打印,安装,报表)
社区管理员
  • 数据库(包含打印,安装,报表)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧