Here is a screen shot of how to get to the OnFormat even which can be found in the properties of the Details section of the Access Report refer to screen shot:
and a small piece of code to demonstrate how to dynamically change the picture displayed in an image control.
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If IsNull(Me.photo_info_path) Then
Me.Image56.Picture = "D:\Photographs\Resources\no-photo.jpg"
Else
If Dir(Me.photo_info_path) <> "" Then
Me.Image56.Picture = Me.photo_info_path
Me.Image56.Requery
Else
Me.Image56.Picture = "D:\Photographs\Resources\no-photo.jpg"
End If
End If
End Sub
JoeM Glad you figured out well. The trick is to open your report in the Print Preview mode. Well this piece of code here is an example.
Code:
DoCmd.OpenReport strDocname, acViewPreview, , strCriteria