如何限制Access窗体文本框中的输入长度? [英] How to limit input length in Access form textbox?

查看:416
本文介绍了如何限制Access窗体文本框中的输入长度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。


Access表单上的文本框是否具有等效的VB6 .MaxLength 属性?我需要限制输入字符串的长度。它没有绑定任何东西,只是在代码中使用,但我宁愿将其限制在控件中而不是在之后进行验证。

Hi all.

Does a textbox on an Access form have an equivalent of the VB6 .MaxLength property? I need to limit the length of an input string. It''s not bound to anything, just used in code, but I''d prefer to limit it in the control rather than validating afterward.

推荐答案

特别是没有。

但你可能想查看''InputMask Property''。 可以能够提供所需的功能。
Specifically no.
But you might want to check out the ''InputMask Property''. It may be able to give the required functionality.



具体没有。

但您可能想查看''InputMask属性''。它可以能够提供所需的功能。
Specifically no.
But you might want to check out the ''InputMask Property''. It may be able to give the required functionality.



坚果!我本来希望避免这种情况。


谢谢,无论如何。

Nuts! I was hoping to avoid that.

Thanks, anyway.



大家好。


Access表单上的文本框是否具有VB6 .MaxLength 属性的等效项?我需要限制输入字符串的长度。它没有任何约束,只是在代码中使用,但我更愿意将其限制在控件中而不是在之后进行验证。
Hi all.

Does a textbox on an Access form have an equivalent of the VB6 .MaxLength property? I need to limit the length of an input string. It''s not bound to anything, just used in code, but I''d prefer to limit it in the control rather than validating afterward.



在代码中你可以

In code you could

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


这篇关于如何限制Access窗体文本框中的输入长度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆