Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autosize Memo Field [Access 2003] 1

Status
Not open for further replies.

Maillme

Technical User
Mar 11, 2003
186
NL
Hi There,

Isitpossible to auto size a memo field on my form - which is individual to each form?

If not, at least to the biggest "chunk of text" within my records.....

many thanks,
Neil
 
What do you wish to achieve? It may suit to make the memo field quite small and prompt users to use Shift+F2 to zoom, or add a little code to the doubleclick event to zoom.
 
Hi there,

What im trying to achieve is not have any text missing on the box at first site.

E.g. - have them use the scroll bars - i dont anticipate it being huge, but they may miss important info,

many thanks,
Neil
 
That could get quite complicated. Not only will you need to resize the control, you will need to resize the form. The limit will be the size of the screen, so it may be best just to make the memo as large as the form will take.
 
yea - i think ill maybe look at more of an "education" appraoch to using the shift F2 button!

thanks again for your help.
Neil
 
I agree with Remou. If the information is that important, you should show all of it, otherwise use zoom.

routine for zooming using the click event is...
Code:
Private Sub textboxname_Click()
  DoCmd.RunCommand acCmdZoomBox
End Sub

Ian Mayor (UK)
Program Error
Always make your words short and sweet. Because you never know when you may have to eat them.
 
I find that using the click event for anything just irritates users, so I always suggest double-click.
 
the click event has its uses but I agree double would be better in this case to prevent inadvertently opening the zoom.


Ian Mayor (UK)
Program Error
Your lack of planning is not my emergency!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top