How can I insert a picture in a form, just by putting its address in the
related table?
How can I do it with or without writing a code?
Store the picture in a folder on your hard drive.
Add a text Field to your table. Name it [PictureName]
Store the name of the picture and it's extension in your table, i.e.
"FarmHouse.jpg"
Add an Image control to your form.
Leave the Image control's Picture property blank. (You may need to
select any picture when adding the control. After the control has been
added and saved, delete the picture. Click OK when prompted about
deleting the picture.)
Code the Form's Currrent event:
If Not IsNull(Me.[PictureName]) Then
Me.ImageName.Picture = "c:\FolderName\" & [PictureName]
Me.ImageName.Visible = True
Else
Me.ImageName.Picture = False
End If
Only records that contain a picture will show on the form.