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  

Shrink when not visible (not when null)



 
 
Thread Tools Display Modes
  #1  
Old July 16th, 2007, 09:16 PM posted to microsoft.public.access.reports
diaare
external usenet poster
 
Posts: 91
Default Shrink when not visible (not when null)

I have a field on my report that has code that makes it visible based on the
value of another field in the report. This works fine.

In addition to this, I would like that when the field is not visible, the
section it is in will shrink, so I do not have the extra blank lines in my
report.

I have my CanGrow and CanShrink properties set to yes, but since it is only
invisible, not null, it doesn't work.

Any ideas?
Thanks,
Diane



  #2  
Old July 16th, 2007, 10:28 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Shrink when not visible (not when null)

You should be able to change the control source to something like:
=IIf([Married]="T",[SpouseName],Null)
Make sure you change the name of the text box and set it to Can Shrink.

--
Duane Hookom
Microsoft Access MVP


"diaare" wrote:

I have a field on my report that has code that makes it visible based on the
value of another field in the report. This works fine.

In addition to this, I would like that when the field is not visible, the
section it is in will shrink, so I do not have the extra blank lines in my
report.

I have my CanGrow and CanShrink properties set to yes, but since it is only
invisible, not null, it doesn't work.

Any ideas?
Thanks,
Diane



  #3  
Old July 16th, 2007, 10:31 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Shrink when not visible (not when null)

diaare wrote:

I have a field on my report that has code that makes it visible based on the
value of another field in the report. This works fine.

In addition to this, I would like that when the field is not visible, the
section it is in will shrink, so I do not have the extra blank lines in my
report.

I have my CanGrow and CanShrink properties set to yes, but since it is only
invisible, not null, it doesn't work.



A text box will shrink if it is invisible or if its value is
either an empty string or Null.

The section containing the text box will also shrink if all
the controls (if any) in the same horizontal "band" as the
text box text box also shrink.

Make sure that you have set BOTH the text box's and its
section's CanShrink to Yes.

--
Marsh
MVP [MS Access]
 




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 11:20 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.