Hi,
I have a subform datasheet that lists all invoices and payments for the client displayed in the Parent form. On each row i have a'Print' button to print that invoice. This all works fine. However the print button is also displayed on the 'payment' row (each row is either a payment or invoice). I want to hide the button on the rows that are for Payments.
This is what I have now.
(Amount is the invoice amount field, it is always 0 if there is a payment on that row)
can anyone help please?
I have a subform datasheet that lists all invoices and payments for the client displayed in the Parent form. On each row i have a'Print' button to print that invoice. This all works fine. However the print button is also displayed on the 'payment' row (each row is either a payment or invoice). I want to hide the button on the rows that are for Payments.
This is what I have now.
(Amount is the invoice amount field, it is always 0 if there is a payment on that row)
Code:
Private Sub Details_Change()
If Amount > 0 Then
printbutton.Visible = True
Else
printbutton.Visible = False
End If
End Sub
can anyone help please?