Hi,
i have sorted an issue I have to only display an image when a field (paiddate) is not null.
I use this code:
And it works fine.
However, if I copy the report and add a parameter to the query (eg. to show all invoices between 2 sets of dates), the code doesn't seem to work and image is visible on every invoice.
The first invoice where it works is always 1 invoice however the 2nd way I am trying to do involves bring back a number of invoices (Reports fed by Queries).
Any ideas?
i have sorted an issue I have to only display an image when a field (paiddate) is not null.
I use this code:
Code:
Private Sub Report_Load()
On Error GoTo ErrHandler
If IsDate(paiddate) Then
Paid.Visible = True
Else
Paid.Visible = False
End If
exitErr:
Exit Sub
ErrHandler:
MsgBox "Error detected, error # " & Err.Number & ", " & Err.Description, vbOKOnly, "Error"
Resume exitErr
End Sub
And it works fine.
However, if I copy the report and add a parameter to the query (eg. to show all invoices between 2 sets of dates), the code doesn't seem to work and image is visible on every invoice.
The first invoice where it works is always 1 invoice however the 2nd way I am trying to do involves bring back a number of invoices (Reports fed by Queries).
Any ideas?