J
JoJo
Hi!
I have a report containing personal details of members and their photo. If
I set up the query where the field PersonPhoto is not null (this is the field
with the photos path in) the report runs beautifully. However, as soon as I
take out the IS not null criteria in the query the report fails with
following message:
Microsoft Visual Basic - Run-time error '13': Type mimatch.
This is the code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Not IsNull(Me.personphoto) Then
Me.imgPersonPhoto.Picture = Me.personphoto
Me.imgPersonPhoto.Visible = True
Else
Me.imgPersonPhoto.Picture = Me.personphoto
Me.imgPersonPhoto.Visible = False
End If
End Sub
Please can anyone help me?
I have a report containing personal details of members and their photo. If
I set up the query where the field PersonPhoto is not null (this is the field
with the photos path in) the report runs beautifully. However, as soon as I
take out the IS not null criteria in the query the report fails with
following message:
Microsoft Visual Basic - Run-time error '13': Type mimatch.
This is the code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Not IsNull(Me.personphoto) Then
Me.imgPersonPhoto.Picture = Me.personphoto
Me.imgPersonPhoto.Visible = True
Else
Me.imgPersonPhoto.Picture = Me.personphoto
Me.imgPersonPhoto.Visible = False
End If
End Sub
Please can anyone help me?