bobbobruns12
Technical User
Ok I've created this real estate database and have a search form process where by a person can type in an area and search for properties and get a list of them with details and such. However on the search details form I would like to allow people to click a command button and it automatically creates a cover page with the name of the property and an image of the property in the top right corner. The way I have set up calling up the images through the forms is instead of storing the picture in the db and slowing the whole thing down I have instead saved the image path and Access uses this to call up the picture in an unbound frame box. The code is like this
Private Sub Form_Current()
On Error Resume Next
If Not IsNull(Me![ImagePath]) Then
Me![ImageFrame].OLETypeAllowed = 1
Me![ImageFrame].SourceDoc = Me![ImagePath]
Me![ImageFrame].Action = 0
End If
End Sub
However when I try to put this code into the report on the open executor it calls up the image path fine but does not then show the image. Is there a different way I need to approach this? Thanks for your help
Private Sub Form_Current()
On Error Resume Next
If Not IsNull(Me![ImagePath]) Then
Me![ImageFrame].OLETypeAllowed = 1
Me![ImageFrame].SourceDoc = Me![ImagePath]
Me![ImageFrame].Action = 0
End If
End Sub
However when I try to put this code into the report on the open executor it calls up the image path fine but does not then show the image. Is there a different way I need to approach this? Thanks for your help