473,385 Members | 1,890 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.

Meassuring a Text Box (?!)

aw
Hi,

Is there a way to meassure the amount of text populating a text field? My
project involves creating a way to select a particular report depending on
the amount of text.

For instance, if five text fields labeled "Serivce Goal 1 ... Service Goal
2", contain only a scanty one sentence, report "A" would be selected; if
the text fields contain a whole paragraph, then report "B" would be used.

Naturally, my queries would have to have a way to meassure text quantity :-(

Any help would be greatly appreciated!

--
Many Thanks!
Nov 12 '05 #1
2 1466
The Len function built in to Access will return the length in characters of
a Field, Control, or String variable.

But, my question is, why would you need separate Reports depending on the
length of certain Fields' data? Why not, instead, set the Can Grow and Can
Shrink properties so the Control can expand/contract to display whatever
amount of text it is supplied?

Larry Linson
Microsoft Access MVP

"aw" <aw@no_spam.com> wrote in message
news:WK*****************@newsread1.news.pas.earthl ink.net...
Hi,

Is there a way to meassure the amount of text populating a text field? My
project involves creating a way to select a particular report depending on
the amount of text.

For instance, if five text fields labeled "Serivce Goal 1 ... Service Goal
2", contain only a scanty one sentence, report "A" would be selected; if
the text fields contain a whole paragraph, then report "B" would be used.

Naturally, my queries would have to have a way to meassure text quantity :-(
Any help would be greatly appreciated!

--
Many Thanks!

Nov 12 '05 #2
aw
Larry Linson wrote:
The Len function built in to Access will return the length in characters
of a Field, Control, or String variable.

But, my question is, why would you need separate Reports depending on the
length of certain Fields' data? Why not, instead, set the Can Grow and Can
Shrink properties so the Control can expand/contract to display whatever
amount of text it is supplied?


Thank you,

Well, its a long story. The 'Grow' and 'shrink' attributes are set to
'yes', however, the text fields may and do grow so that the detail section
of the report breaks into a second page; somehow, this creates havoc with
the page and report headers and thus causing rather unpredictable visual
results.
--
Many Thanks!
Nov 12 '05 #3

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

Similar topics

3
by: Xerxes | last post by:
Hi, I need help in setting up a page where the text wraps around an image. Right now, I am using table, with text in one <td> and the image in the adjacent <td>. The problem is when the text is...
2
by: Macsicarr | last post by:
Hi All Wonder if you could help me. I have created a CMS system that allows the user to enter text and pic 'tags' for their own About us page, eg text.... text.... text.... text.......
4
by: Arif Çimen | last post by:
Hi to everybody, I have chnged a button text in design mode. But After compiling and executing the program the text of the button do not change to new value. Any Ideas? Thaks for helps.
3
by: jweinberg1975 | last post by:
I would like for users to be able to select from a small number of options that come from a little drop down menu which then closes. .....
3
by: bbepristis | last post by:
Hey all I have this code that reads from one text file writes to another unless im on a certian line then it writes the new data however it only seems to do about 40 lines then quits and I cant...
3
by: acecraig100 | last post by:
I am fairly new to Javascript. I have a form that users fill out to enter an animal to exhibit at a fair. Because we have no way of knowing, how many animals a user may enter, I created a table...
3
by: jonniethecodeprince | last post by:
Hi all, I have trouble getting an array of data stored in a separate javascript file i.e. a file called books.js into a table of data for a .xhtml file. There are 50 Records in this file....
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
0
by: JosAH | last post by:
Greetings, Introduction At the end of the last Compiler article part I stated that I wanted to write about text processing. I had no idea what exactly to talk about; until my wife commanded...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.