Bound Object Frames

Z

Zephyr

We have recently upgraded from Access 2003 to Access 2007.

One of our applications has a form which contains a bound object frame to
display photos along with some text controls which give information regarding
that photo. We then set the properties for the frame with the following code:

' Set class name.
OLEBound7.Class = ".jpg"
' Specify type of object.
OLEBound7.OLETypeAllowed = acOLELinked
' Specify source file.
OLEBound7.SourceDoc = "H:\APPS\TRAPEZE\IMAGES\" & Vec
' Specify data to create link to.
OLEBound7.SourceItem = ""
' Create linked object.
OLEBound7.Action = acOLECreateLink
' Adjust control size.
OLEBound7.SizeMode = acOLESizeZoom

This worked fine in Access 2003, and appears to execute without error in
Access 2007. However, when the form loads the picture does not appear.

Does anyone have any suggestions or perhaps an idea as to why we cannot get
photos to display? Thank you in advance for your help.
 

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