A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

variable field width



 
 
Thread Tools Display Modes
  #1  
Old November 21st, 2009, 09:29 AM posted to microsoft.public.access.forms
John D.[_2_]
external usenet poster
 
Posts: 2
Default variable field width

I need to display client name and associated address information. There are
three rows of data which are taken from the contacts table.

The field boxes are all fixed in width, I want to make the width dependant
on the data length, and if the field data are short, the boxes would leave no
extra white space.

I may have several field boxes in a row, and I would like the boxes to go
right next to one another without spaces, so each field box position is
anchored to the end of the previous field box.

How would I implement this?

John.
  #2  
Old November 21st, 2009, 12:51 PM posted to microsoft.public.access.forms
Rick Brandt
external usenet poster
 
Posts: 4,354
Default variable field width

John D. wrote:

I need to display client name and associated address information. There
are three rows of data which are taken from the contacts table.

The field boxes are all fixed in width, I want to make the width dependant
on the data length, and if the field data are short, the boxes would leave
no extra white space.

I may have several field boxes in a row, and I would like the boxes to go
right next to one another without spaces, so each field box position is
anchored to the end of the previous field box.

How would I implement this?


If this is only for *display* then just use an expression in each of three
stacked TextBoxes that span the length you need for all the data on a row.
The TextBox won't change width, but the data will always be right next to
each other.

Example expression for City, State and Zip...

=[CityField] & ", " & [StateField] & " " & [ZipCodeField]



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.