Me!Photo is the field we are parsing.
Code:
Private Sub Form_Current() Dim inInt As Integer Dim strPhoto As String inInt = InStr(Me!Photo, "#") If inInt > 0 Then strPhoto = Mid(Me!Photo, inInt + 1, Len(Me!Photo) - inInt - 1) Me!Image42.Picture = strPhoto else If Not IsNull(Me!Photo) And Len(Me!Photo) > 0 Then Me!Image42.Picture = Me!Photo End If end if End Sub
Comment