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  

How conditionally skip stuff on a report?



 
 
Thread Tools Display Modes
  #1  
Old October 16th, 2009, 02:04 PM posted to microsoft.public.access.reports
ray anselmi
external usenet poster
 
Posts: 2
Default How conditionally skip stuff on a report?

Good morning,
I saw the article "How conditionally display stuff on a report?", however I have a slight twist.

I have a field "comments" that is occasionally blank. When the report prints, it prints a blank line if the comment is blank (obviously). How do I get the report to skip that record. I tried the IIF statement with no luck.
Thanks!!

EggHeadCafe - Software Developer Portal of Choice
How to detect and Automatically install MSXML
http://www.eggheadcafe.com/tutorials...d-automat.aspx
  #2  
Old October 16th, 2009, 04:31 PM posted to microsoft.public.access.reports
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default How conditionally skip stuff on a report?

When you say "skip", do you mean "don't show ANY of the fields in a record
that has nothing in the [Comments] field?

If so, use a query! Exclude rows with "blanks" (now the tough part ...
"blank" could mean Null, or zero-length string, or spaces ... they all look
blank to me!). Your query needs to exclude any of those possibilities.

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

ray anselmi wrote in message ...
Good morning,
I saw the article "How conditionally display stuff on a report?", however
I have a slight twist.

I have a field "comments" that is occasionally blank. When the report
prints, it prints a blank line if the comment is blank (obviously). How
do I get the report to skip that record. I tried the IIF statement with
no luck.
Thanks!!

EggHeadCafe - Software Developer Portal of Choice
How to detect and Automatically install MSXML
http://www.eggheadcafe.com/tutorials...d-automat.aspx



  #4  
Old October 16th, 2009, 07:11 PM posted to microsoft.public.access.reports
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default How conditionally skip stuff on a report?

As asked, the original poster wished to "skip that record", not (merely) the
control/blank...

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Steve" wrote in message
m...
Hello Ray,

Have you tried setting the Comments field in your report Can Shrink
property to Yes? Setting it to Yes will cause the textbox's height to
shrink to 0 and thus not give you the blank line.

Steve



ray anselmi wrote in message ...
Good morning,
I saw the article "How conditionally display stuff on a report?", however
I have a slight twist.

I have a field "comments" that is occasionally blank. When the report
prints, it prints a blank line if the comment is blank (obviously). How
do I get the report to skip that record. I tried the IIF statement with
no luck.
Thanks!!

EggHeadCafe - Software Developer Portal of Choice
How to detect and Automatically install MSXML
http://www.eggheadcafe.com/tutorials...d-automat.aspx




  #5  
Old October 16th, 2009, 07:35 PM posted to microsoft.public.access.reports
Steve[_77_]
external usenet poster
 
Posts: 1,017
Default How conditionally skip stuff on a report?

Read a little closer! He doesn't want to see a blank line when there is no
comment. This is the same as is typically done when there are Address1 and
Address2 fields in an address and there is no Address2.

Steve



"Jeff Boyce" wrote in message
...
As asked, the original poster wished to "skip that record", not (merely)
the control/blank...

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Steve" wrote in message
m...
Hello Ray,

Have you tried setting the Comments field in your report Can Shrink
property to Yes? Setting it to Yes will cause the textbox's height to
shrink to 0 and thus not give you the blank line.

Steve



ray anselmi wrote in message ...
Good morning,
I saw the article "How conditionally display stuff on a report?",
however I have a slight twist.

I have a field "comments" that is occasionally blank. When the report
prints, it prints a blank line if the comment is blank (obviously). How
do I get the report to skip that record. I tried the IIF statement with
no luck.
Thanks!!

EggHeadCafe - Software Developer Portal of Choice
How to detect and Automatically install MSXML
http://www.eggheadcafe.com/tutorials...d-automat.aspx






  #6  
Old October 16th, 2009, 11:09 PM posted to microsoft.public.access.reports
Jeff Boyce
external usenet poster
 
Posts: 8,621
Default How conditionally skip stuff on a report?

Steve

Here's a direct quote from the OP - "How do I get the report to skip that
record. "

Yes, the OP also mention the blank..., but asked a direct question about
skipping a record.

My initial response asked the OP for clarification, whether "skip" meant the
entire record or just the field.

Regards

Jeff

"Steve" wrote in message
m...
Read a little closer! He doesn't want to see a blank line when there is no
comment. This is the same as is typically done when there are Address1 and
Address2 fields in an address and there is no Address2.

Steve



"Jeff Boyce" wrote in message
...
As asked, the original poster wished to "skip that record", not (merely)
the control/blank...

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Steve" wrote in message
m...
Hello Ray,

Have you tried setting the Comments field in your report Can Shrink
property to Yes? Setting it to Yes will cause the textbox's height to
shrink to 0 and thus not give you the blank line.

Steve



ray anselmi wrote in message ...
Good morning,
I saw the article "How conditionally display stuff on a report?",
however I have a slight twist.

I have a field "comments" that is occasionally blank. When the report
prints, it prints a blank line if the comment is blank (obviously).
How do I get the report to skip that record. I tried the IIF statement
with no luck.
Thanks!!

EggHeadCafe - Software Developer Portal of Choice
How to detect and Automatically install MSXML
http://www.eggheadcafe.com/tutorials...d-automat.aspx








  #7  
Old October 17th, 2009, 12:30 AM posted to microsoft.public.access.reports
Steve[_77_]
external usenet poster
 
Posts: 1,017
Default How conditionally skip stuff on a report?

The OP said " When the report prints, it prints a blank line if the comment
is blank (obviously). How do I get the report to skip that record."

A record would not just include a comment field. The record would include at
least one or more fields. Just because the comment field is blank does not
mean the report should not display other info in the record. Like many posts
to the newsgroups, terms are misused. I interpret the OP's question to mean
he does not want to see the blank line left by the comment field when there
is no comment. Just like not wanting to see a blank line when there is no
Address2.

I'm not saying you are wrong!

Steve



"Jeff Boyce" wrote in message
...
Steve

Here's a direct quote from the OP - "How do I get the report to skip that
record. "

Yes, the OP also mention the blank..., but asked a direct question about
skipping a record.

My initial response asked the OP for clarification, whether "skip" meant
the entire record or just the field.

Regards

Jeff

"Steve" wrote in message
m...
Read a little closer! He doesn't want to see a blank line when there is
no comment. This is the same as is typically done when there are Address1
and Address2 fields in an address and there is no Address2.

Steve



"Jeff Boyce" wrote in message
...
As asked, the original poster wished to "skip that record", not (merely)
the control/blank...

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services
mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"Steve" wrote in message
m...
Hello Ray,

Have you tried setting the Comments field in your report Can Shrink
property to Yes? Setting it to Yes will cause the textbox's height to
shrink to 0 and thus not give you the blank line.

Steve



ray anselmi wrote in message ...
Good morning,
I saw the article "How conditionally display stuff on a report?",
however I have a slight twist.

I have a field "comments" that is occasionally blank. When the report
prints, it prints a blank line if the comment is blank (obviously).
How do I get the report to skip that record. I tried the IIF
statement with no luck.
Thanks!!

EggHeadCafe - Software Developer Portal of Choice
How to detect and Automatically install MSXML
http://www.eggheadcafe.com/tutorials...d-automat.aspx










  #8  
Old October 17th, 2009, 07:48 PM posted to microsoft.public.access.reports
Jeff Boyce
external usenet poster
 
Posts: 1,555
Default How conditionally skip stuff on a report?

Ray

Do you have a solution to your question?


--

Regards

Jeff Boyce
Microsoft Access MVP

Disclaimer: This author may have received products and services mentioned in
this post. Mention and/or description of a product or service herein does
not constitute endorsement thereof.

Any code or psuedocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.


ray anselmi wrote in message ...
Good morning,
I saw the article "How conditionally display stuff on a report?", however
I have a slight twist.

I have a field "comments" that is occasionally blank. When the report
prints, it prints a blank line if the comment is blank (obviously). How
do I get the report to skip that record. I tried the IIF statement with
no luck.
Thanks!!

EggHeadCafe - Software Developer Portal of Choice
How to detect and Automatically install MSXML
http://www.eggheadcafe.com/tutorials...d-automat.aspx



 




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 05:26 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.