brendoaccess
Technical User
I have a form 'Residents' that displays a photo for each client record - and it works fine, as long as each record has an assigned photo - if not, the blank record takes on the photo of the previous record, and continues until the next record that has an assigned photo.
I tried to correct it with this, which doesn't work;
Private Sub Form_Current()
On Error Resume Next
If Me![ImagePath] = " " Then
Me![ImagePath] = "D:\NOIMAGE.JPG"
Else
Me![ImageFrame].Picture = Me![ImagePath]
End If
End Sub
Any ideas?
Many thanks
I tried to correct it with this, which doesn't work;
Private Sub Form_Current()
On Error Resume Next
If Me![ImagePath] = " " Then
Me![ImagePath] = "D:\NOIMAGE.JPG"
Else
Me![ImageFrame].Picture = Me![ImagePath]
End If
End Sub
Any ideas?
Many thanks