I am trying to say that if the record has an image attached display the image icon and if not display nothing. The code displays the icon on each record. Here's the code:
Any help is appreciated!
Code:
Private Sub Form_Load()
If IsNull(DLookup("EventAttachment", "Event", "EventID = " & Me.txtEventID)) Then
Me.Image123.Visible = False
Else
Me.Image123.Visible = True
End If
End Sub
Any help is appreciated!