M
M. Murphy
Hi,
I'm an acess hack, trying to finish a project.
I know just enough to get myself in trouble!!
Making a report, which extends pricing (quantity * price = extended price)
the extended price is a calculated field, and that works fine. I can even
total up the exetended (calaulated)fields at the bottom!!
My issue is that I have total of 7 possible items on the report, and if I
don't use the full 7 I get a bunch of zeros on my report. I was able to use
this code for the quantity and price fields to supress the zeros:
If Me.quantity_2 = 0 Then
Me.quantity_2.Visible = False
Else
Me.quantity_2.Visible = True
End If
That works, but not for the calculated field. I get errors, and I think I
understand why, so my question is:
how do I supress the zero in a calculated field?
TIA!!
I'm an acess hack, trying to finish a project.
I know just enough to get myself in trouble!!
Making a report, which extends pricing (quantity * price = extended price)
the extended price is a calculated field, and that works fine. I can even
total up the exetended (calaulated)fields at the bottom!!
My issue is that I have total of 7 possible items on the report, and if I
don't use the full 7 I get a bunch of zeros on my report. I was able to use
this code for the quantity and price fields to supress the zeros:
If Me.quantity_2 = 0 Then
Me.quantity_2.Visible = False
Else
Me.quantity_2.Visible = True
End If
That works, but not for the calculated field. I get errors, and I think I
understand why, so my question is:
how do I supress the zero in a calculated field?
TIA!!