Quote:
Originally Posted by Stewart Ross Inverness
Hi. Your code is ok, as long as the control called Paid on your report is indeed a boolean (true/false) value, and when it runs it should hide or show the controls in the detail section of your report accordingly. When you say that the report does not print the information, can you advise whether or not the controls concerned are always being shown, always being hidden, or what?
-Stewart
The checkbox called Paid is a (true/false) value. If it is checked on the Form PaymentConfirmation then it shows the information on the report. This works fine as i can see it on the screen until i want to print the report off. All the information on the report prints fine apart from the information from the code below which doesn't come out on the print out. the information is being pulled from a query. Do i have to put this code into the query or the form before it reaches the report for it to work?
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If (Me.[Paid] = True) Then
Me.labelPaid.Visible = True
Me.PaidDate.Visible = True
Me.PaymentMethod.Visible = True
Me.PaymentNumber.Visible = True
Else
Me.labelPaid.Visible = False
Me.PaidDate.Visible = False
Me.PaymentMethod.Visible = False
Me.PaymentNumber.Visible = False
End If
End Sub