开发者

MS Access 2007: Specify Max Length for TextBox on a Form

How do I specify Max Length for TextBox on开发者_Go百科 a Form?


This should help you on your way

http://allenbrowne.com/ser-34.html

It covers if users paste into the box and lots of other ways making it very useful


You can use validation rules. Open the Property Sheet of the Form -> Tab 'Data' and fill out 'validation rule' with e.g.: Len([fieldname])<=42 Or Is Null

You can also add a 'validation text' like: "Maximum 42 chars allowed!"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜