I'm creating an invoice using a source that includes a LoyaltyDiscount, and this is displayed on the report.
Depending on its value I want to display a thank you message in a text box called DiscountText in the footer section. The code below in the Detail section doesn't fire so I get the text every time. Tried repeating the code in the footer but it still doesn't fire.
This same invoice is a redesign of one where the Loyalty Discount was calculated in the report instead of being in the source query, and this is the only difference, I think. LoyaltyDiscount displays properly in the new design.
Any clues?
Depending on its value I want to display a thank you message in a text box called DiscountText in the footer section. The code below in the Detail section doesn't fire so I get the text every time. Tried repeating the code in the footer but it still doesn't fire.
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
'Controls whether or not to show Loyalty Discount
If Me.LoyaltyDiscount = 0 Then
Me.DiscountText.Visible = False
Else
Me.DiscountText.Visible = True
End If
End Sub
This same invoice is a redesign of one where the Loyalty Discount was calculated in the report instead of being in the source query, and this is the only difference, I think. LoyaltyDiscount displays properly in the new design.
Any clues?