C
CyberDwarf
Hi,
Having big trouble trying to add a hyperlinked document to a form field.
Code as follows:-
---------------------
Me.DocLink.SetFocus 'Focus to the link field
DoCmd.RunCommand acCmdInsertHyperlink
---------------------
This results in the standard hyperlink dialog, but no matter which document
I select, the second line of code returns an error, usually 2759 (The method
you tried to invoke on an object failed.), but sometimes error 7874 (Access
can't find the object 'ObjectName').
I have spent a couple of hours trying to get this to work, without any
success.
Any hints, help, or constructive criticism gratefully received!
TIA
Steve
Having big trouble trying to add a hyperlinked document to a form field.
Code as follows:-
---------------------
Me.DocLink.SetFocus 'Focus to the link field
DoCmd.RunCommand acCmdInsertHyperlink
---------------------
This results in the standard hyperlink dialog, but no matter which document
I select, the second line of code returns an error, usually 2759 (The method
you tried to invoke on an object failed.), but sometimes error 7874 (Access
can't find the object 'ObjectName').
I have spent a couple of hours trying to get this to work, without any
success.
Any hints, help, or constructive criticism gratefully received!
TIA
Steve