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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"OLE Server Does not support Linking" Error

Status
Not open for further replies.

keithvp

Instructor
Aug 10, 2000
19
US
I am pulling images off a CD to link into a table. I am using the following code:
Private Sub Command3_Click()
On Error Resume Next
Dim FilePath As String
Dim FileExt As String
Dim try As String
Dim final As String
FilePath = "e:\"
FileExt = ".jpg"

Do While Not IsNull(Me!ID)
flnm = Me!ID & FileExt
final = Dir(FilePath & flnm)
If final <> &quot;&quot; Then
Me!Pict.SourceDoc = FilePath & flnm
Me!Pict.Action = acOLECreateLink
DoCmd.GoToRecord
Else
DoCmd.GoToRecord , , acNext
End If

Loop


End Sub

This code is actually used as an event procedure of a button. I have had it link before from a cd. I changed the code to add the DIR() function. However, now it will not link off the CD. What can I do?
Thanks Keith
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top