Reputation: 10845
How do I specify Max Length for TextBox on a Form?
Upvotes: 2
Views: 19033
Reputation: 141
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!"
Upvotes: 2
Reputation: 7215
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
Upvotes: 6