Location Of Url, And Not Picture

ben3001

Registered User.
Local time
Today, 14:40
Joined
Mar 4, 2007
Messages
12
I have my database which can be found here

ive made a report that has been made from a form containing pictures in an OLE object.

In the report i just get the location of the image. Ive tried looking around this forum and i cant seem to find the solution.

I'd appreciate any suggestions

Thanks

ben
 
report

In that report in design view drop an image control into the detail section of your report next to your textbox called photo.
In the On Print event of your detail section try this code:

If Not IsNull(Me.MyImage) Then Me.MyImage.Picture = Me.photo
 
Hi there im not too sure if i did it right but it didnt work, heres how i did it:

Step 1:
s1ye8.jpg



Step 2: The Ole object
s2kp3.jpg




Step 3: Adding to the detail section
s3ws4.jpg



Step 4: error
s4zb6.jpg
 
report

Incorrect. Remove the code you have in the On Print. Click on the 3 dots to the right. Then paste that code in there.
 
Ok now i have typed this into the code builder

Code:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If Not IsNull(Me.MyImage) Then Me.MyImage.Picture = Me.Photo
End Sub

but i have recieved this error

errsq8.jpg
 
object

me.myimage refers to the name of the control you placed in the report. Right click on that image object you inserted in the report. Go to properties>Other. That is the name you must use.
 
report

Here is your database with the correction. Just change the image's data to a picture on your computer in design view
 

Attachments

Hi rick sorry to bother you again but on my hotel form record 2, i cant amend it, i cant delete it would you know why?

I get the error message:

3709

The search key was not found in any record
 

Users who are viewing this thread

Back
Top Bottom