I am trying to show a picture on a form and I have it showing when there is a path in the field, but when I move to a record with no picture path in the text field it is drawing from, I get the debug error (Invalid use of Null).
I am using the following code:
Private Sub Form_Current()
Me.ImgPic.Picture = Me!txtpicture1
End Sub
It appears it is not handling the "null" of an empty field, but I cannot figure out how to get it to ignore a null field.
Thanks for any help!
I am using the following code:
Private Sub Form_Current()
Me.ImgPic.Picture = Me!txtpicture1
End Sub
It appears it is not handling the "null" of an empty field, but I cannot figure out how to get it to ignore a null field.
Thanks for any help!