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  

Hiding a Null Field and it's label in a Subreport



 
 
Thread Tools Display Modes
  #1  
Old August 1st, 2007, 06:52 PM posted to microsoft.public.access.reports
Krispy
external usenet poster
 
Posts: 12
Default Hiding a Null Field and it's label in a Subreport

Hi there,
I am trying to get a field and its' label to not be visible on the subreport
if the field is null.

Does anyone know how to do this? Its driving me crazy.
  #2  
Old August 1st, 2007, 07:16 PM posted to microsoft.public.access.reports
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default Hiding a Null Field and it's label in a Subreport

Open the report in design view.

Click on the control ("fields" are in tables). Open the control's
properties. Find the Can Grow and Can Shrink properties -- and set them
both to Yes.

Click on the section in which the control sits. Set the section's Can Grow
and Can Shrink properties to Yes.

NOTE: if there are any controls in the report that are aligned horizontally
with the control in question, they can "hold open" the control, even if it
has Null.

NOTE2: you don't have to do this on the associated label. You DO have a
label attached to the control, right?!

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Krispy" wrote in message
...
Hi there,
I am trying to get a field and its' label to not be visible on the
subreport
if the field is null.

Does anyone know how to do this? Its driving me crazy.



  #3  
Old August 1st, 2007, 07:46 PM posted to microsoft.public.access.reports
Krispy
external usenet poster
 
Posts: 12
Default Hiding a Null Field and it's label in a Subreport

Thank you so much for your quick reply. I love this site!

Your suggestion worked for the control in the detail, but not for the its'
label in the the header.

"Jeff Boyce" wrote:

Open the report in design view.

Click on the control ("fields" are in tables). Open the control's
properties. Find the Can Grow and Can Shrink properties -- and set them
both to Yes.

Click on the section in which the control sits. Set the section's Can Grow
and Can Shrink properties to Yes.

NOTE: if there are any controls in the report that are aligned horizontally
with the control in question, they can "hold open" the control, even if it
has Null.

NOTE2: you don't have to do this on the associated label. You DO have a
label attached to the control, right?!

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Krispy" wrote in message
...
Hi there,
I am trying to get a field and its' label to not be visible on the
subreport
if the field is null.

Does anyone know how to do this? Its driving me crazy.




  #4  
Old August 1st, 2007, 09:08 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Hiding a Null Field and it's label in a Subreport

Add a line of code to the section's Format event:

Me.textbox.Visible = Not IsNull(Me.textbox)
--
Marsh
MVP [MS Access]


Krispy wrote:

Thank you so much for your quick reply. I love this site!

Your suggestion worked for the control in the detail, but not for the its'
label in the the header.

"Jeff Boyce" wrote:

Open the report in design view.

Click on the control ("fields" are in tables). Open the control's
properties. Find the Can Grow and Can Shrink properties -- and set them
both to Yes.

Click on the section in which the control sits. Set the section's Can Grow
and Can Shrink properties to Yes.

NOTE: if there are any controls in the report that are aligned horizontally
with the control in question, they can "hold open" the control, even if it
has Null.

NOTE2: you don't have to do this on the associated label. You DO have a
label attached to the control, right?!

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Krispy" wrote in message
...
Hi there,
I am trying to get a field and its' label to not be visible on the
subreport
if the field is null.

Does anyone know how to do this? Its driving me crazy.





  #5  
Old August 1st, 2007, 10:02 PM posted to microsoft.public.access.reports
Krispy
external usenet poster
 
Posts: 12
Default Hiding a Null Field and it's label in a Subreport

IT WORKS!!!! Thank you. I am doing a dance in my cubicle right now.

"Marshall Barton" wrote:

Add a line of code to the section's Format event:

Me.textbox.Visible = Not IsNull(Me.textbox)
--
Marsh
MVP [MS Access]


Krispy wrote:

Thank you so much for your quick reply. I love this site!

Your suggestion worked for the control in the detail, but not for the its'
label in the the header.

"Jeff Boyce" wrote:

Open the report in design view.

Click on the control ("fields" are in tables). Open the control's
properties. Find the Can Grow and Can Shrink properties -- and set them
both to Yes.

Click on the section in which the control sits. Set the section's Can Grow
and Can Shrink properties to Yes.

NOTE: if there are any controls in the report that are aligned horizontally
with the control in question, they can "hold open" the control, even if it
has Null.

NOTE2: you don't have to do this on the associated label. You DO have a
label attached to the control, right?!

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Krispy" wrote in message
...
Hi there,
I am trying to get a field and its' label to not be visible on the
subreport
if the field is null.

Does anyone know how to do this? Its driving me crazy.





  #6  
Old August 4th, 2007, 06:00 AM posted to microsoft.public.access.reports
Larry Linson
external usenet poster
 
Posts: 3,112
Default Hiding a Null Field and it's label in a Subreport

"Krispy" wrote

IT WORKS!!!! Thank you. I am doing a dance in
my cubicle right now.


Careful! Don't tip over that cactus plant! Ooops! :-)

Larry





 




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:21 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.