J
jversiz via AccessMonster.com
Ok,
I know I'm going to get a bunch of links posted in this one regarding see
this post here and see this help section there, but I've looked at them and I
still can't get this to work, so here I am.
First of all I am on Access 2000
I am trying to get a picture to display on a form. The directory for the .
jpg/.bmp is located in "tblISF" in a field called "PhotoFilePath". The name
of my unbound object frame is "ImageFrame".
On the report "rptISF", I would like the picture to display in my group
header, so I have tried placing several different variations of the below
code in the "On Format" and "On Print" events, but I have not had any luck.
I was able to get this to work pretty easily on my form, "frmISF", so I am
not sure why I am having a hard time. Any help is appreciated. Thanks!
Variation 1:
If Not IsNull(Me![PhotoFilePath]) Then
Me![ImageFrame].OLETypeAllowed = 1
Me![ImageFrame].SourceDoc = Me![PhotoFilePath]
Me![ImageFrame].Action = 0
Else
Me![ImageFrame].OLETypeAllowed = 1
Me![ImageFrame].SourceDoc = "C:\NA.bmp"
Me![ImageFrame].Action = 0
End If
Variation 1 Error - Type Mismatch
Variation 2
Me.ImageFrame.Picture = Me.PhotoFilePath
Variation 2 Error - Object doesn't support this property or method
Variation 3
Me.ImageFrame.Picture = Forms!frmISF![PhotoFilePath]
Variation 3 Error - Object doesn't support this property or method
Regards,
James C.
EDI Analyst
I know I'm going to get a bunch of links posted in this one regarding see
this post here and see this help section there, but I've looked at them and I
still can't get this to work, so here I am.
First of all I am on Access 2000
I am trying to get a picture to display on a form. The directory for the .
jpg/.bmp is located in "tblISF" in a field called "PhotoFilePath". The name
of my unbound object frame is "ImageFrame".
On the report "rptISF", I would like the picture to display in my group
header, so I have tried placing several different variations of the below
code in the "On Format" and "On Print" events, but I have not had any luck.
I was able to get this to work pretty easily on my form, "frmISF", so I am
not sure why I am having a hard time. Any help is appreciated. Thanks!
Variation 1:
If Not IsNull(Me![PhotoFilePath]) Then
Me![ImageFrame].OLETypeAllowed = 1
Me![ImageFrame].SourceDoc = Me![PhotoFilePath]
Me![ImageFrame].Action = 0
Else
Me![ImageFrame].OLETypeAllowed = 1
Me![ImageFrame].SourceDoc = "C:\NA.bmp"
Me![ImageFrame].Action = 0
End If
Variation 1 Error - Type Mismatch
Variation 2
Me.ImageFrame.Picture = Me.PhotoFilePath
Variation 2 Error - Object doesn't support this property or method
Variation 3
Me.ImageFrame.Picture = Forms!frmISF![PhotoFilePath]
Variation 3 Error - Object doesn't support this property or method
Regards,
James C.
EDI Analyst