Hi,
I'm trying to update an OLE field in a table to be a linked
object. I've gotten this far:
Dim mydb As Database
Dim itemset As Recordset
Set mydb = CurrentDb
Set itemset = mydb.OpenRecordset("t_test" 'Create dynaset.
itemset.MoveFirst ' Find first occurrence
Do Until itemset.EOF
itemset.Edit
itemset![LinkedDocumentField] = ???
itemset.Update
itemset.MoveNext
Loop
I'm not sure what to replace ??? with to put a document there. I want to
link c:\pbs\textinvgift3.doc but don't know how to link the document in this
field instead of the text "c:\pbs\textinvgift3.doc" Any suggestions?
Thanks, Susie [sig][/sig]
I'm trying to update an OLE field in a table to be a linked
object. I've gotten this far:
Dim mydb As Database
Dim itemset As Recordset
Set mydb = CurrentDb
Set itemset = mydb.OpenRecordset("t_test" 'Create dynaset.
itemset.MoveFirst ' Find first occurrence
Do Until itemset.EOF
itemset.Edit
itemset![LinkedDocumentField] = ???
itemset.Update
itemset.MoveNext
Loop
I'm not sure what to replace ??? with to put a document there. I want to
link c:\pbs\textinvgift3.doc but don't know how to link the document in this
field instead of the text "c:\pbs\textinvgift3.doc" Any suggestions?
Thanks, Susie [sig][/sig]