F
Frank Situmorang
Hello,
I want to have the photo in the report, it has worked in the formm but I
want to work also on the report.
For some record which has no photo, it will only show " no picture". This is
my VBA, it works for no picture, but for the one has picture ( in the sample
I have 1 picture, it just bring the same picture to the next record, even
though the image path is null.
This is my VBA:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
On Error Resume Next
If Not (IsNull(Me.ImagePath)) Then
Me.Imageforrpt.Picture = Me.ImagePath
Else
Me.Imageforrpt.Picture = "C:\Private\Churchdata\Nopicture.jpg"
End If
End Sub
I do not know what is wrong on the above,
Thanks in advance
I want to have the photo in the report, it has worked in the formm but I
want to work also on the report.
For some record which has no photo, it will only show " no picture". This is
my VBA, it works for no picture, but for the one has picture ( in the sample
I have 1 picture, it just bring the same picture to the next record, even
though the image path is null.
This is my VBA:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
On Error Resume Next
If Not (IsNull(Me.ImagePath)) Then
Me.Imageforrpt.Picture = Me.ImagePath
Else
Me.Imageforrpt.Picture = "C:\Private\Churchdata\Nopicture.jpg"
End If
End Sub
I do not know what is wrong on the above,
Thanks in advance