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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Address fields



 
 
Thread Tools Display Modes
  #1  
Old October 10th, 2007, 05:08 PM posted to microsoft.public.access.reports
[email protected]
external usenet poster
 
Posts: 3
Default Address fields

Hello everyone,
I have a report with name, address1, address2, city,state and zip
fields among others. Sometimes there is data in the Address2 field and
sometimes there isn't. My Problem is I would like the city,state zip
field to move up to addres2 when addres2 is null. What is the best way
to do this?
Thanks.

  #3  
Old October 11th, 2007, 05:21 PM posted to microsoft.public.access.reports
[email protected]
external usenet poster
 
Posts: 3
Default Address fields

On Oct 10, 10:54 am, Marshall Barton wrote:
wrote:
I have a report with name, address1, address2, city,state and zip
fields among others. Sometimes there is data in the Address2 field and
sometimes there isn't. My Problem is I would like the city,state zip
field to move up to addres2 when addres2 is null. What is the best way
to do this?


Try setting CanShrink for both the address2 text box and its
section.

If your report has other controls that interfere with
CanShrink, then use a single text box for the entire address
using an expression like:

=name & Chr(13) & Chr(10) & address1 & Chr(13) & Chr(10) &
(address2 + Chr(13) + Chr(10)) & city & ", " & state & " "
& zip

--
Marsh
MVP [MS Access]


There seems to be a problem with the CR LF. The box will only show the
name and if I remove the CHR(13) & CHR(10) the address1 is displayed.

  #5  
Old October 11th, 2007, 06:46 PM posted to microsoft.public.access.reports
[email protected]
external usenet poster
 
Posts: 3
Default Address fields

On Oct 11, 9:45 am, Marshall Barton wrote:
wrote:
On Oct 10, 10:54 am, Marshall Barton wrote:
wrote:
I have a report with name, address1, address2, city,state and zip
fields among others. Sometimes there is data in the Address2 field and
sometimes there isn't. My Problem is I would like the city,state zip
field to move up to addres2 when addres2 is null. What is the best way
to do this?


Try setting CanShrink for both the address2 text box and its
section.


If your report has other controls that interfere with
CanShrink, then use a single text box for the entire address
using an expression like:


=name & Chr(13) & Chr(10) & address1 & Chr(13) & Chr(10) &
(address2 + Chr(13) + Chr(10)) & city & ", " & state & " "
& zip


There seems to be a problem with the CR LF. The box will only show the
name and if I remove the CHR(13) & CHR(10) the address1 is displayed.


Maybe the text box is not tall enough? Try setting the text
box's CanGrow ro Yes.

Or, you could make the text box tall enough for 4 lines and
use CanShrink to deal with cases where there only 3 lines.

--
Marsh
MVP [MS Access]- Hide quoted text -

- Show quoted text -


Thaks. That was it. I can't believe I didn't think of that!!!

 




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 07:59 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.