Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

images in forms from URLs

Status
Not open for further replies.

Anomoeoneis

Programmer
Sep 27, 2002
1
GB
Hi

I have a form that takes a file name from a query and loads that image into a unbound object frame, changing images when a a different record is viewed.

This worked fine when the file was on the disk with this code
Code:
Private Sub Form_Current() 'Detail_Click()
 Dim imgFile
 imgFile = "E:\molten\images\" & Me.fileName
 diaImg.SourceDoc = imgFile
 diaImg.Action = acOLECreateLink
 diaImg.UpdateOptions = acOLEUpdateManual
 diaImg.Action = acOLEUpdate
End Sub
I now want to use images of the web instead, I tried setting
imgFile= " & Me.fileName
but get an error from diaImg.SourceDoc = imgFile

I am using Access97. Can anybody help.

Richard
 
I haven't done this before so this is not confirmed. You may try to use a hyperlink variable and build it from string parts. I know the hyp is a hyperlink object and the developer can use the properties and methods of the hyperlink.

Dim hyp As Hyperlink
Set hyp = New Hyperlink
hyp.Address = "http:\\diaImg = Hyp.Address




----------------------
scking@arinc.com
Life is filled with lessons.
We are responsible for the
results of the quizzes.
-----------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top