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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Reports and Autosizing Textboxes



 
 
Thread Tools Display Modes
  #1  
Old July 30th, 2009, 05:10 PM posted to microsoft.public.access.gettingstarted
eMJeF
external usenet poster
 
Posts: 2
Default Reports and Autosizing Textboxes

Greetings,

In Access 2003, I have on a report where I have 3 texts boxes side by side.
They are City, State, and Zip Code. I don’t know enough about code to
develop it on my own, so I was wondering how I could get the fields to auto
size based on length of the field before it.

e.j. New York NY 23156
or Albuquerque NM 87106
or Tallahassee FL 12358
or Salem OR 78956

I can’t have it overlap where…
e.j. New Y NY 23156
or Albuqu NM 87106
or Tallaha FL 12358

Neither can I have a space between the two such that…
e.j. NewYork NY 23156
or Albuquerque NM 87106
or Tallahassee FL 12358

How can I go about having all 3 fields resize based on the length of the text
in the text boxes?

  #2  
Old July 30th, 2009, 05:18 PM posted to microsoft.public.access.gettingstarted
Douglas J. Steele[_3_]
external usenet poster
 
Posts: 3,143
Default Reports and Autosizing Textboxes

Why not combine the three fields into one and only have a single textbox?

You can do this as a calculated field in the query used as the report's
RecordSource, or you can simply set the ControlSource of the single text box
to =[City] & " " & [State] & " " & [Zip Code] (include the equal sign)

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"eMJeF" u53685@uwe wrote in message news:99daa7321392d@uwe...
Greetings,

In Access 2003, I have on a report where I have 3 texts boxes side by
side.
They are City, State, and Zip Code. I don't know enough about code to
develop it on my own, so I was wondering how I could get the fields to
auto
size based on length of the field before it.

e.j. New York NY 23156
or Albuquerque NM 87106
or Tallahassee FL 12358
or Salem OR 78956

I can't have it overlap where.
e.j. New Y NY 23156
or Albuqu NM 87106
or Tallaha FL 12358

Neither can I have a space between the two such that.
e.j. NewYork NY 23156
or Albuquerque NM 87106
or Tallahassee FL 12358

How can I go about having all 3 fields resize based on the length of the
text
in the text boxes?



  #3  
Old July 30th, 2009, 05:45 PM posted to microsoft.public.access.gettingstarted
eMJeF
external usenet poster
 
Posts: 2
Default Reports and Autosizing Textboxes

That is Genuis! Thank you very much! It worked.

Douglas J. Steele wrote:
Why not combine the three fields into one and only have a single textbox?

You can do this as a calculated field in the query used as the report's
RecordSource, or you can simply set the ControlSource of the single text box
to =[City] & " " & [State] & " " & [Zip Code] (include the equal sign)

Greetings,

[quoted text clipped - 23 lines]
text
in the text boxes?


 




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 04:27 PM.


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