G
Guest
When designing our sales report, if the amount in the field is equal to "0" I
prefer there to be a blank, rather than a page filled with zeros. I do this
by entering:
If Me!ProposalAmount = 0 Then
Me!ProposalAmount.Visible = 0
Else
Me!ProposalAmount.Visible = -1
End If
In my form I have a field "InvoiceTotal" and another "CGS"
The next field calculates the profit
=([InvoiceTotal]-[cgs])
It's the last field I'm having a problem with. It calculates the percentage
of profit
=([PROFIT]/[InvoiceTotal])
The calculation works great when there is a number in the invoice and cgs
fields. If the invoice and cgs fields are the default "0" an error message
is displayed.
How and WHEREdo I insert the....something like
If Me!cgs= 0 Then
Me!profitpercent.Visible = 0
Else
Me!profitpercent.Visible = -1
End If
Thank you
RMarko
prefer there to be a blank, rather than a page filled with zeros. I do this
by entering:
If Me!ProposalAmount = 0 Then
Me!ProposalAmount.Visible = 0
Else
Me!ProposalAmount.Visible = -1
End If
In my form I have a field "InvoiceTotal" and another "CGS"
The next field calculates the profit
=([InvoiceTotal]-[cgs])
It's the last field I'm having a problem with. It calculates the percentage
of profit
=([PROFIT]/[InvoiceTotal])
The calculation works great when there is a number in the invoice and cgs
fields. If the invoice and cgs fields are the default "0" an error message
is displayed.
How and WHEREdo I insert the....something like
If Me!cgs= 0 Then
Me!profitpercent.Visible = 0
Else
Me!profitpercent.Visible = -1
End If
Thank you
RMarko