Text Box Resizing

G

Guest

I have a form that contains text boxes. The user inputs verbiage to be saved
in the DB.

Sometimes the verbiage is lengthy.

My boxes do not resize, or at least display a vertical scroll bar when text
extends beyond what is shown.

I have the text box properties set as follows..
Scroll Bars = Vertical
Can Grow = Yes
Can Shrink = Yes

What must I change/enable to properly display the text?

Than you in advance.
 
G

Guest

Hi John

The can grow / shrink applies to reports not forms.

You may be able to reduce the font size slightly to make the text fit the
field
http://www.lebans.com/autosizefont.htm

But - It may be better to simply allow scroll bars so that user can view the
text.

Hope this helps


--
Buon Natale, Happy Chritmas.

Wayne
Manchester, England.
Scusate,ma il mio Inglese fa schiffo :)
Percio se non ci siamo capiti, mi mandate un
messagio e provero di spiegarmi meglio.
 
M

missinglinq via AccessMonster.com

Another possibility is to expand the text box using the Zoom command. This
code expands a text box when the mouse moves over it. The same code could be
used in other events such as Double-Click or GotFocus (these wouldn't need
the .SetFocus line) as well.

Private Sub YourTextBox_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
If Not IsNull(YourTextBox) Then
YourTextBox.SetFocus
DoCmd.RunCommand acCmdZoomBox
End If
End Sub

Wayne-I-M said:
Hi John

The can grow / shrink applies to reports not forms.

You may be able to reduce the font size slightly to make the text fit the
field
http://www.lebans.com/autosizefont.htm

But - It may be better to simply allow scroll bars so that user can view the
text.

Hope this helps
I have a form that contains text boxes. The user inputs verbiage to be saved
in the DB.
[quoted text clipped - 12 lines]
Than you in advance.
 
G

Guest

I think that Zoom may not work (except to allow user to see) as this still
will not change the amount of "stuff" that can be input into the text box

From the original post
Sometimes the verbiage is lengthy.

<:)

--
Buon Natale, Happy Chritmas.

Wayne
Manchester, England.
Scusate,ma il mio Inglese fa schiffo :)
Percio se non ci siamo capiti, mi mandate un
messagio e provero di spiegarmi meglio.



missinglinq via AccessMonster.com said:
Another possibility is to expand the text box using the Zoom command. This
code expands a text box when the mouse moves over it. The same code could be
used in other events such as Double-Click or GotFocus (these wouldn't need
the .SetFocus line) as well.

Private Sub YourTextBox_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
If Not IsNull(YourTextBox) Then
YourTextBox.SetFocus
DoCmd.RunCommand acCmdZoomBox
End If
End Sub

Wayne-I-M said:
Hi John

The can grow / shrink applies to reports not forms.

You may be able to reduce the font size slightly to make the text fit the
field
http://www.lebans.com/autosizefont.htm

But - It may be better to simply allow scroll bars so that user can view the
text.

Hope this helps
I have a form that contains text boxes. The user inputs verbiage to be saved
in the DB.
[quoted text clipped - 12 lines]
Than you in advance.
 
G

Guest

Change the field to a memo field will do what you want (scroll bars).

Dont forget BACKUP THE TABLE 1st - Just in case ??



--
Buon Natale, Happy Chritmas.

Wayne
Manchester, England.
Scusate,ma il mio Inglese fa schiffo :)
Percio se non ci siamo capiti, mi mandate un
messagio e provero di spiegarmi meglio.



Posse John said:
The amount of text has not been a problem, just having it visible on the form
is.

Either having the verticle scroll bar appear for the text box, or having the
text box resize for that record would meet my needs.

Wayne-I-M said:
I think that Zoom may not work (except to allow user to see) as this still
will not change the amount of "stuff" that can be input into the text box

From the original post
Sometimes the verbiage is lengthy.

<:)

--
Buon Natale, Happy Chritmas.

Wayne
Manchester, England.
Scusate,ma il mio Inglese fa schiffo :)
Percio se non ci siamo capiti, mi mandate un
messagio e provero di spiegarmi meglio.



missinglinq via AccessMonster.com said:
Another possibility is to expand the text box using the Zoom command. This
code expands a text box when the mouse moves over it. The same code could be
used in other events such as Double-Click or GotFocus (these wouldn't need
the .SetFocus line) as well.

Private Sub YourTextBox_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
If Not IsNull(YourTextBox) Then
YourTextBox.SetFocus
DoCmd.RunCommand acCmdZoomBox
End If
End Sub

Wayne-I-M wrote:
Hi John

The can grow / shrink applies to reports not forms.

You may be able to reduce the font size slightly to make the text fit the
field
http://www.lebans.com/autosizefont.htm

But - It may be better to simply allow scroll bars so that user can view the
text.

Hope this helps

I have a form that contains text boxes. The user inputs verbiage to be saved
in the DB.
[quoted text clipped - 12 lines]

Than you in advance.
 
R

Rick Brandt

Wayne-I-M said:
Change the field to a memo field will do what you want (scroll bars).

The Field's DataType has nothing to do with whether scrollbars appear in the
TextBox or not.

I believe some versions of Access have a bug wherein the scrollbar on a TextBox
won't appear depending on the margin property setting of the control. And of
course the control has to be at least two lines tall to get a scrollbar.
 
M

missinglinq via AccessMonster.com

Excuse me, but Posse John said nothing about increasing the amount of data
entered, just

"What must I change/enable to properly display the text?"

which, as you said, the zooming action does. Data entry can also be done in
the zoom box. If he needs to increase the data beyond the text datatype's
255 limit, then he needs to go to a memo filed, but he mentions nothing about
this. Answering questions that haven't been asked is not very productive.


Wayne-I-M said:
I think that Zoom may not work (except to allow user to see) as this still
will not change the amount of "stuff" that can be input into the text box

From the original post
Sometimes the verbiage is lengthy.
<:)

Another possibility is to expand the text box using the Zoom command. This
code expands a text box when the mouse moves over it. The same code could be
[quoted text clipped - 27 lines]

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
 
S

Stephen Lebans

Open for the Properties Dialog for the TextBox control. Set all of the
Margin Spacing props back to 0.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


Posse John said:
The amount of text has not been a problem, just having it visible on the
form
is.

Either having the verticle scroll bar appear for the text box, or having
the
text box resize for that record would meet my needs.

Wayne-I-M said:
I think that Zoom may not work (except to allow user to see) as this
still
will not change the amount of "stuff" that can be input into the text box

From the original post
Sometimes the verbiage is lengthy.

<:)

--
Buon Natale, Happy Chritmas.

Wayne
Manchester, England.
Scusate,ma il mio Inglese fa schiffo :)
Percio se non ci siamo capiti, mi mandate un
messagio e provero di spiegarmi meglio.



missinglinq via AccessMonster.com said:
Another possibility is to expand the text box using the Zoom command.
This
code expands a text box when the mouse moves over it. The same code
could be
used in other events such as Double-Click or GotFocus (these wouldn't
need
the .SetFocus line) as well.

Private Sub YourTextBox_MouseMove(Button As Integer, Shift As Integer,
X As
Single, Y As Single)
If Not IsNull(YourTextBox) Then
YourTextBox.SetFocus
DoCmd.RunCommand acCmdZoomBox
End If
End Sub

Wayne-I-M wrote:
Hi John

The can grow / shrink applies to reports not forms.

You may be able to reduce the font size slightly to make the text fit
the
field
http://www.lebans.com/autosizefont.htm

But - It may be better to simply allow scroll bars so that user can
view the
text.

Hope this helps

I have a form that contains text boxes. The user inputs verbiage to
be saved
in the DB.
[quoted text clipped - 12 lines]

Than you in advance.
 
G

Guest

I am sorry for this.

--
Buon Natale, Happy Chritmas.

Wayne
Manchester, England.
Scusate,ma il mio Inglese fa schiffo :)
Percio se non ci siamo capiti, mi mandate un
messagio e provero di spiegarmi meglio.



missinglinq via AccessMonster.com said:
Excuse me, but Posse John said nothing about increasing the amount of data
entered, just

"What must I change/enable to properly display the text?"

which, as you said, the zooming action does. Data entry can also be done in
the zoom box. If he needs to increase the data beyond the text datatype's
255 limit, then he needs to go to a memo filed, but he mentions nothing about
this. Answering questions that haven't been asked is not very productive.


Wayne-I-M said:
I think that Zoom may not work (except to allow user to see) as this still
will not change the amount of "stuff" that can be input into the text box

From the original post
Sometimes the verbiage is lengthy.
<:)

Another possibility is to expand the text box using the Zoom command. This
code expands a text box when the mouse moves over it. The same code could be
[quoted text clipped - 27 lines]
Than you in advance.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
 
M

missinglinq via AccessMonster.com

HAppy Christmas, Wayne-I-M, and a bountiful Boxing Day, too!

Wayne-I-M said:
I am sorry for this.
Excuse me, but Posse John said nothing about increasing the amount of data
entered, just
[quoted text clipped - 20 lines]

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000

Message posted via AccessMonster.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top