473,385 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Limiting the amount of Text within a Text Box

I am building a template which has an area for the user to type in whatever
information is needed (a form, narrative, whatever). However, I have a
limited amount of space on the 1st page of the form. I have tried using a
cell with exact measurements and I have tried using a text box (but you can't
set permissions on linked text boxes and this "open space" is the only place
a user is allowed to type in information. Does anyone know of a way to
prevent the typist from continuing to type once the border of the cell or
text box has been reached?

Both the cell and text box allow the typist to keep typing although you can
no longer see the information being typed in.
Jun 27 '08 #1
2 1009

"LMW" <LM*@discussions.microsoft.comwrote in message
news:7D**********************************@microsof t.com...
>I am building a template which has an area for the user to type in whatever
information is needed (a form, narrative, whatever). However, I have a
limited amount of space on the 1st page of the form. I have tried using a
cell with exact measurements and I have tried using a text box (but you
can't
set permissions on linked text boxes and this "open space" is the only
place
a user is allowed to type in information. Does anyone know of a way to
prevent the typist from continuing to type once the border of the cell or
text box has been reached?

Both the cell and text box allow the typist to keep typing although you
can
no longer see the information being typed in.
Doesn't the Length property of the Textbox set the length of how many
characters can be entered?
There is also the Keypress event that you could write a routine to check the
current length of the Textbox and cancel the KeyPress if the length equals
the max length you have set.

You could punish them by using a multi-line Textbox with vertical and
horizontal scroll bars, let them type until the cows come home and you
truncate the text to the length you want. :)
Jun 27 '08 #2
You haven't been able to find a well written JavaScript validator yet?

"LMW" <LM*@discussions.microsoft.comwrote in message
news:7D**********************************@microsof t.com...
>I am building a template which has an area for the user to type in whatever
information is needed (a form, narrative, whatever). However, I have a
limited amount of space on the 1st page of the form. I have tried using a
cell with exact measurements and I have tried using a text box (but you
can't
set permissions on linked text boxes and this "open space" is the only
place
a user is allowed to type in information. Does anyone know of a way to
prevent the typist from continuing to type once the border of the cell or
text box has been reached?

Both the cell and text box allow the typist to keep typing although you
can
no longer see the information being typed in.
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Otto Krüse | last post by:
Hi everyone, I'm building a GUI in which I want, amongst other things, for people to fill in there postal code. The postal codes of my country (Holland) are in this format: 1234 AB So for the...
18
by: OrenFlekser | last post by:
Hi I've posted this message couple of days ago, but I can't find it now, so sorry if you see it twice... Anyways - I have a text box, and I want my users to be able to write only in english...
2
by: Jo Davis | last post by:
access fe and access be. later the be might be sql server I don't want people to pass this application around. And I want control over usage. I want it to 'expire' after a while. I have fairly...
5
by: randyelliott | last post by:
Good Day, I have a MS Access (Access 2000 now upgraded to 2003) database that tracks customer information. One function of this database is to create an encrypted license file for our software,...
4
by: GregG | last post by:
Greetings, I have been working with the new GridView control, and while figuring out most of it's idiosyncrasies on my own, have stumbled upon a problem I cannot seem to resolve. We have...
3
by: DBQueen | last post by:
How can I limit the size of a Memo field? I don't want the user to be able to enter more than 500 characters. Thanks! Andi
3
by: Bob Alston | last post by:
What do others do to limit the number of characters a user can enter in a text box? Do you specify the number of characters exactly so that only that number will fit in the text box, thereby...
2
by: prakashwadhwani | last post by:
I've used Dbase/Clipper for years & Access for a little while now but Access doesn't seem to have any elegant solution to limiting the size of a text box ... i.e. the max number of characters that...
2
hodgeman
by: hodgeman | last post by:
My second thread on thescripts, so hoping to get the same feedback and help as last time... I've developed an online invoicing and payment system for all my accounts for my web design company....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.