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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text Box Length

Status
Not open for further replies.

cariengon

Technical User
Mar 18, 2002
283
US
I'm working on a form where I have 2 different Text boxes on one line. I want the text box length of the 1st one to grow & shrink to the contents. I then want a second text box to bump up against the 1st. Right now they are static at the point in the form I place them. How do I make my 2nd text box not get overwritten by the first?
 
Well, this is the Access Reports forum. I'm not sure if you need this for a Form or Report but you can try this.

If it's a form then in the OnCurrent event for the form, you could try

Me.Textbox2.Left = Me.Textbox1.Left + Me.Textbox1.Width

set the can shrink/can grow properties for both textboxes to yes.

If it's a Report, then you can use the same principle but put it in the On Format event for the section the textboxes are in on the report.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top