C
Carol Geddes
Using Access 2000
I am trying to link jpeg images to a Bound OLE Control
First I thought I would just try to link one image to the control no matter
which record I go to. Then when I get that to work then I want to have it
programmatically use the appropriate file. The picture file names correspond
to the unique ID of the records.
In the source doc property I placed the path to the file :
C:\AURORA\PICTURE\2001642.000
In the Open event of the form I placed: (This was sort of modified from the
help files.)
The program that stores the pictures saves them with .000 extension but they
are jpegs.
Private Sub Form_Open(Cancel As Integer)
' OLEBound0.Class = "Excel.Sheet" ' Set class name.
' Specify type of object.
OLEBound0.OLETypeAllowed = acOLELinked
' Specify source file.
OLEBound0.SourceDoc = "C:\AURORA\PICTURE\2001642.000"
' Create linked object.
OLEBound0.Action = acOLECreateLink
End Sub
I get a runtime error. 2753. A problem occurred while Microsoft Access was
communicating with the OLE server or ActiveX Control.
I am finding the help files on Microsoft site not very useful. I can't
figure out where to look.
Thanks,
Carol
I am trying to link jpeg images to a Bound OLE Control
First I thought I would just try to link one image to the control no matter
which record I go to. Then when I get that to work then I want to have it
programmatically use the appropriate file. The picture file names correspond
to the unique ID of the records.
In the source doc property I placed the path to the file :
C:\AURORA\PICTURE\2001642.000
In the Open event of the form I placed: (This was sort of modified from the
help files.)
The program that stores the pictures saves them with .000 extension but they
are jpegs.
Private Sub Form_Open(Cancel As Integer)
' OLEBound0.Class = "Excel.Sheet" ' Set class name.
' Specify type of object.
OLEBound0.OLETypeAllowed = acOLELinked
' Specify source file.
OLEBound0.SourceDoc = "C:\AURORA\PICTURE\2001642.000"
' Create linked object.
OLEBound0.Action = acOLECreateLink
End Sub
I get a runtime error. 2753. A problem occurred while Microsoft Access was
communicating with the OLE server or ActiveX Control.
I am finding the help files on Microsoft site not very useful. I can't
figure out where to look.
Thanks,
Carol