Issues with "0" in report (1 Viewer)

mkdrep

Registered User.
Local time
Yesterday, 23:26
Joined
Feb 6, 2014
Messages
176
Please see (Zeroes.jpg) of a report I am printing. Each line represents when a product shipped and the quantity of the product on each order. Unfortunately, since each order doesn't include a quantity for each of the (10) products, I get a lot of "0" values in report. However, on relatively few occasions, I will get two of three products on one line, as shown in (Zeroes-2.jpg)

Is there anyway to set up the report so only it only prints the fields on an individual row when the product quantity > "0"?

Thank you.
 

Attachments

  • Zeroes.jpg
    Zeroes.jpg
    45.1 KB · Views: 195
  • Zeroes-2.jpg
    Zeroes-2.jpg
    42.3 KB · Views: 188

CJ_London

Super Moderator
Staff member
Local time
Today, 04:26
Joined
Feb 19, 2013
Messages
16,607
exclude them with criteria. Without knowing your underlying recordsource, cant suggest what that criteria would look like
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 20:26
Joined
Oct 29, 2018
Messages
21,453
Which rows in your sample images need to be excluded? I couldn't determine which ones you want to eliminate.
 

isladogs

MVP / VIP
Local time
Today, 04:26
Joined
Jan 14, 2017
Messages
18,209
Use conditional formatting to set the font color to be the same as the back color when the values are zero
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 11:26
Joined
May 7, 2009
Messages
19,231
better Ask around your colleages?
for whom the report is for?
obviously those people who are before you want
to know those details.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 04:26
Joined
Feb 19, 2013
Messages
16,607
Which rows in your sample images need to be excluded?
I'm assuming it is the first row of zeros-2

Re conditional formatting - I would use the format property
 

mkdrep

Registered User.
Local time
Yesterday, 23:26
Joined
Feb 6, 2014
Messages
176
Use conditional formatting to set the font color to be the same as the back color when the values are zero
I don't know how to accomplish your suggestion. I assume I would highlite each field one at a time, but I'm not sure how to use conditional formating to accomplish what I want. Any other info you could give me would be greatly appreciated.
 

MajP

You've got your good things, and you've got mine.
Local time
Yesterday, 23:26
Joined
May 21, 2018
Messages
8,525
I think we are not sure what you mean. It is not completely clear. I can see there are several different guesses. If you want the 0s to be invisible then do as mentioned by setting the font forecolor to the backcolor.
Cond3.jpg


This would do something like
report.jpg
 

mkdrep

Registered User.
Local time
Yesterday, 23:26
Joined
Feb 6, 2014
Messages
176
I think we are not sure what you mean. It is not completely clear. I can see there are several different guesses. If you want the 0s to be invisible then do as mentioned by setting the font forecolor to the backcolor.
View attachment 92868

This would do something like
View attachment 92869
Sorry for the confusion I caused everyone. That being said, what you are showing above is what I'm trying to accomplish. Thank you!
 

MajP

You've got your good things, and you've got mine.
Local time
Yesterday, 23:26
Joined
May 21, 2018
Messages
8,525
A third/fourth way is to use a calculated value in a query or a calculated control.
In a query you would format each field like:
Code:
SELECT IIf([sl15]>0,[sl15],"") AS SL15Format, ... FROM tblProduct;
in a calculated control for the SL15 text box:
Code:
= IIf([sl15]>0,[sl15],"")
 

mkdrep

Registered User.
Local time
Yesterday, 23:26
Joined
Feb 6, 2014
Messages
176
Sorry for the confusion I caused everyone. That being said, what you are showing above is what I'm trying to accomplish. Thank you!
The attached is what I finally settled on, which gives a much clearer view than the original report. Thank you again for your help.
 

Attachments

  • Resulting-rpt.jpg
    Resulting-rpt.jpg
    64.5 KB · Views: 192

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 20:26
Joined
Oct 29, 2018
Messages
21,453
The attached is what I finally settled on, which gives a much clearer view than the original report. Thank you again for your help.
Hi. Glad to hear you got it sorted out. Good luck with your project.
 

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 23:26
Joined
Feb 19, 2002
Messages
43,223
Do you really have ten product columns in your table?
 

Users who are viewing this thread

Top Bottom