Photo not showing

J

Jason

Access 97. I'm using the following code to embed photo but it is not being
saved:

With Forms(stDocName)
AssetPhotoPath = Nz(AssetPhotoPath, "")
!AssetPhotoPath = AssetPhotoPath
!AssetPhoto_OLETypeAllowed = acOLELinked
!AssetPhoto.SourceDoc = AssetPhotoPath
!AssetPhoto.Action = acOLECreateLink
End With

Thansk,
J.
 
F

Fred

Not to leave the false impression that I really know this stuff, but your
code looks way more complicated than it needs to be.

e.g to display a picture in a form we just have the following in the form's
"on current" event:

Private Sub Form_Current()

Me.Image17.Picture = Me.PicturePathAndFile

End Sub


Me.Image17 is the name of the box, and PicturePathAndFile is the name of the
text field that stores the lication and file name of the picture.
 
J

Jason

This was the code I was given by someone on here or was referred to a site
that contained it. Shall try your code when I get time to test it.

Thanks,
J.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top